#81✎ 131raimondzFirst WeekJoined in the very first week of SmileBASIC SourceWebsiteExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthNight PersonI like the quiet night and sleep late.Express YourselfAre you using different codes to handle collision with each input? Maybe you should translate stick input into button input:
Example:
'Function to translate stick input into button input.
'@param B Integer. Bit map made by button() function
DEF stickToButton(B)
VAR CX,CX
STICK OUT CX,CY
VAR DZ=0.3 'Dead zone.
IF CX<-DZ THEN B=B OR #LEFT
IF CX>DZ THEN B=B OR #RIGHT
IF CY<-DZ THEN B=B OR #DOWN
IF CY>DZ THEN B=B OR #UP
RETURN B
END
...
'Usage
VAR B=BUTTON()
B=stickToButton(B)
...'Handle input
Posted
#82✎ 1565randoIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthThird YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
Hey you know what your right let me just change that real quick boooks to August like it's supposed to be and it will be all good and set for this Wednesday my dudes whach out from that key that never seems to be coming up due to FRICKIN' ISSUES I really wish I had help too.
Takes huge breath
Can you explain what kind of issue? maybe I can help you with that....
Since I'm using the stick for this game, things are (obviously) different. I prefer the classic square walking like the original LoZ games but I thought It would be fun to try. The problem I'm having is Background collision. For some reason the same thing I use for D-Pad movement won't work for the c stick's free movement. Thanks for the help :)
What kind of bg collision code are you using? One I use for both is:
IF BGGET(layer,PX,PY+16)==BACKGROUND NUMBER THEN INC PX
IF BGGET(layer,PX+16,PY)==BACKGROUND NUMBER THEN INC PY
IF BGGET(layer,PX+32,PY+16)==BACKGROUND NUMBER THEN DEC PX
IF BGGET(layer,PX+16,PY+32)==BACKGROUND NUMBER THEN DEC PY
Posted
#83✎ 175MochaProbablyExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthNight PersonI like the quiet night and sleep late.Express YourselfDrawingI like to draw!Hobbies
Hey you know what your right let me just change that real quick boooks to August like it's supposed to be and it will be all good and set for this Wednesday my dudes whach out from that key that never seems to be coming up due to FRICKIN' ISSUES I really wish I had help too.
Takes huge breath
Can you explain what kind of issue? maybe I can help you with that....
Since I'm using the stick for this game, things are (obviously) different. I prefer the classic square walking like the original LoZ games but I thought It would be fun to try. The problem I'm having is Background collision. For some reason the same thing I use for D-Pad movement won't work for the c stick's free movement. Thanks for the help :)
What kind of bg collision code are you using? One I use for both is:
IF BGGET(layer,PX,PY+16)==BACKGROUND NUMBER THEN INC PX
IF BGGET(layer,PX+16,PY)==BACKGROUND NUMBER THEN INC PY
IF BGGET(layer,PX+32,PY+16)==BACKGROUND NUMBER THEN DEC PX
IF BGGET(layer,PX+16,PY+32)==BACKGROUND NUMBER THEN DEC PY
You should probably use VSYNC in your program so its capped at 60FPS and not the fastest the system can run it. So you know, it runs the same on old and new 3ds’s. If you want i can create a demo program with player movement and collision for you to use. Random also has good tutorials on these two subjects.
Posted
Edited
by MochaProbably
#84✎ 1565randoIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthThird YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
Hey you know what your right let me just change that real quick boooks to August like it's supposed to be and it will be all good and set for this Wednesday my dudes whach out from that key that never seems to be coming up due to FRICKIN' ISSUES I really wish I had help too.
Takes huge breath
Can you explain what kind of issue? maybe I can help you with that....
Since I'm using the stick for this game, things are (obviously) different. I prefer the classic square walking like the original LoZ games but I thought It would be fun to try. The problem I'm having is Background collision. For some reason the same thing I use for D-Pad movement won't work for the c stick's free movement. Thanks for the help :)
What kind of bg collision code are you using? One I use for both is:
IF BGGET(layer,PX,PY+16)==BACKGROUND NUMBER THEN INC PX
IF BGGET(layer,PX+16,PY)==BACKGROUND NUMBER THEN INC PY
IF BGGET(layer,PX+32,PY+16)==BACKGROUND NUMBER THEN DEC PX
IF BGGET(layer,PX+16,PY+32)==BACKGROUND NUMBER THEN DEC PY
You should probably use VSYNC in your program so its capped at 60FPS and not the fastest the system can run it. So you know, it runs the same on old and new 3ds’s. If you want i can create a demo program with player movement and collision for you to use. Random also has good tutorials on these two subjects.
A tutorial would be nice. I have been using wait. I don't know the difference very much and the help is confusing when it gets to the difference on vsync.
Posted
Edited
by rando
#85✎ 75GreedyGoat8Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthAvatar BlockI didn't change my avatar for 30 days.WebsiteDisguisedHiddenWebsite
Hey you know what your right let me just change that real quick boooks to August like it's supposed to be and it will be all good and set for this Wednesday my dudes whach out from that key that never seems to be coming up due to FRICKIN' ISSUES I really wish I had help too.
Takes huge breath
Can you explain what kind of issue? maybe I can help you with that....
Since I'm using the stick for this game, things are (obviously) different. I prefer the classic square walking like the original LoZ games but I thought It would be fun to try. The problem I'm having is Background collision. For some reason the same thing I use for D-Pad movement won't work for the c stick's free movement. Thanks for the help :)
What kind of bg collision code are you using? One I use for both is:
IF BGGET(layer,PX,PY+16)==BACKGROUND NUMBER THEN INC PX
IF BGGET(layer,PX+16,PY)==BACKGROUND NUMBER THEN INC PY
IF BGGET(layer,PX+32,PY+16)==BACKGROUND NUMBER THEN DEC PX
IF BGGET(layer,PX+16,PY+32)==BACKGROUND NUMBER THEN DEC PY
You should probably use VSYNC in your program so its capped at 60FPS and not the fastest the system can run it.
-SHNIP-
random_guy, that's the strategy I'm using, but for some reason it's always giving me an out of range error for some reason. It won't do it by bg tiles either. Btw warrior, the vsync worked 👌 v e r y n i c e.
Posted
Edited
by GreedyGoat8
#86✎ 175MochaProbablyExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthNight PersonI like the quiet night and sleep late.Express YourselfDrawingI like to draw!HobbiesVSYNC caps it off 60FPS on any device its used on, resulting in the same experience across new and old systems. WAIT simply waits an extra frame before going to the next line of code, cutting your performance in half.
Posted
#87✎ 1565randoIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthThird YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
VSYNC caps it off 60FPS on any device its used on, resulting in the same experience across new and old systems. WAIT simply waits an extra frame before going to the next line of code, cutting your performance in half.
Oh. Well, I have a n3DS, so maybe thats why I don't see the difference.
Posted
#88✎ 47VG_LoverFirst YearMy account is over 1 year oldWebsiteAvatar EmbargoI didn't change my avatar for 90 daysWebsiteDeep SleepHiddenWebsiteDo you still need someone who's just going to try to help but look at what I haven't accomplished someone to help
(I have an o3DS by the way)
Posted
Edited
by VG_Lover
#89✎ 15Yoshiandjoshi123543Beginner ProgrammerI'm just starting out! I'm still trying to grasp the basics.Programming StrengthVideo GamesI like to play video games!Hobbies
Hello everyone! I am starting to make a game that will be similar to Zelda A Link to the Past. I have 4 different title screens currently, and I am making an opening part right now. I also have the BEST final boss song planned. So here I'll post a few screenshots, and updates. If you want to help, ask me and I might let you. Thx for reading!
that picture (↑) is inaccurate because im changing the beginning. same with the one down (↓) because now it is compatible with o3ds.
Also, you will only be able to play this if you use a NEW 3DS because you save with zl and zr.
Never mind that ↑, I changed it to L and R. You can play and develop with o3ds now.
You still could use the circle pad pro for the o3ds.
Posted
#90✎ 395CyberYoshi64Expert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsNight PersonI like the quiet night and sleep late.Express YourselfWho owns a Circle Pad Pro for the old 3DS family members? It would be unfair. Whereever I look, this o3DS accessory doesn't appear anywhere in Saxony's electronic stores or secondhand shops. Amazon or eBay aren't options either.
Also I don't think it fits on an o2DS because the ports and buttons are in a different place and the width (front to back) is as thick as a thumb at the top while the o3DS isn't.
And I will never be able to own an old 3DS or the newer versions.
Posted
#91✎ 1565randoIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthThird YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
Do you still need someone who's just going to try to help but look at what I haven't accomplished someone to help
(I have an o3DS by the way)
Actually, I literally crossed of zl and zr and made it l and r. o3ds is compatible. Yes, you can help. What position do you want?
Posted
Edited
by rando
#92✎ 47VG_LoverFirst YearMy account is over 1 year oldWebsiteAvatar EmbargoI didn't change my avatar for 90 daysWebsiteDeep SleepHiddenWebsiteUm...I'm still kind of a beginner at SmileBASIC, so maybe I can help with the story, music, or visuals
Posted
Edited
by VG_Lover
#93✎ 1565randoIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthThird YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
Um...I'm still kind of a beginner at SmileBASIC, so maybe I can help with the story, music, or visuals
I have open spaces in the first page. Choose the one you would be best at or enjoy alot.
Posted
Edited
by rando
#94✎ 75GreedyGoat8Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthAvatar BlockI didn't change my avatar for 30 days.WebsiteDisguisedHiddenWebsite
Do you still need someone who's just going to try to help but look at what I haven't accomplished someone to help
(I have an o3DS by the way)
Lel this is similar to me... (Realizes how much time I have left) Oh crap....
Posted
#95✎ 75GreedyGoat8Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthAvatar BlockI didn't change my avatar for 30 days.WebsiteDisguisedHiddenWebsiteThe key is going to be posted shortly. Sorry for the delay.
Posted
#96✎ 75GreedyGoat8Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthAvatar BlockI didn't change my avatar for 30 days.WebsiteDisguisedHiddenWebsiteHere it comes.....
Posted
#97✎ 1565randoIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthThird YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
Here it comes.....
The hype!
Posted
#98✎ 75GreedyGoat8Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthAvatar BlockI didn't change my avatar for 30 days.WebsiteDisguisedHiddenWebsiteIkr? Its right here:PDBE32KV
Posted
Edited
by GreedyGoat8
#99✎ 1565randoIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthThird YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
Ikr? Its right here: PDBE32KV
I was just sitting here waiting. Thats nice!
Posted
#100✎ 75GreedyGoat8Intermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthAvatar BlockI didn't change my avatar for 30 days.WebsiteDisguisedHiddenWebsiteLel.
Posted