? Enter the Ring (Page 2) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Enter the Ring

1 2 3 4 5 6
  • #21 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself i might need a playtester once i get attacks 1 and 2 done and at least 1 enemy functional because if i make it myself i don't really have the highest sense of quality. also i need to figure out how to make quitting the game work because i can get it to pause and un-pause but trying to quit does absolutely diddly. Posted
  • #22 ✎ 114 Sam Amazing Page Hidden Achievements Great Page Hidden Achievements Good Page Hidden Achievements Quitting the game is easily done with STOP. END would do a similar thing, but it doesn't work inside functions. Actually, I just came up with a really cool thing for you. Try this: DEF A IF B2 AND #Y && !FADE() THEN FADE #BLACK,60 IF FADE()==#BLACK THEN ACLS:STOP END '(Then inside your main loop...) @LOOP VSYNC A GOTO @LOOPWhen you press Y, the game will fade out and once the screen is completely faded out, it ends the game. By the way, I keep putting my code inside functions, but if it confuses you, you can definitely just place all of your code in the main loop. Posted Edited by Sam
  • #23 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself
    Quitting the game is easily done with STOP. END would do a similar thing, but it doesn't work inside functions.
    my idea was to have a goofy death scene play out when the player quits but i mean if i simply can not figure that out i'll just have it do this i think. thanks.
    Posted
  • #24 ✎ 114 Sam Amazing Page Hidden Achievements Great Page Hidden Achievements Good Page Hidden Achievements Ah, then can't you do something like this? @LOOP VSYNC IF BUTTON(2)AND #Y GOTO @GAMEOVER GOTO @LOOP @GAMEOVER 'Do your scene here END Posted
  • #25 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself
    Ah, then can't you do something like this? @LOOP VSYNC IF BUTTON(2)AND #Y GOTO @GAMEOVER GOTO @LOOP @GAMEOVER 'Do your scene here END
    i'm gonna get on that.
    Posted Edited by codinginept
  • #26 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself
    Ah, then can't you do something like this? @LOOP VSYNC IF BUTTON(2)AND #Y GOTO @GAMEOVER GOTO @LOOP @GAMEOVER 'Do your scene here END
    i'm gonna get on that.
    ok so i tried that but it's just telling me there's an undefined label which i don't get because i 100% did define it. this exact same issue happened last time i tried this so i just canned it until now but now i wanna get it done and functional so i really need some help with this.
    Posted Edited by codinginept
  • #27 ✎ 986 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    Ah, then can't you do something like this? @LOOP VSYNC IF BUTTON(2)AND #Y GOTO @GAMEOVER GOTO @LOOP @GAMEOVER 'Do your scene here END
    i'm gonna get on that.
    ok so i tried that but it's just telling me there's an undefined label which i don't get because i 100% did define it. this exact same issue happened last time i tried this so i just canned it until now but now i wanna get it done and functional so i really need some help with this.
    lemme see your code btw I'll be a playtester.
    Posted
  • #28 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself
    lemme see your code
    ok so b pauses the game and when it's paused it checks to see if any button is pressed and if that button happens to be b it will do this: IF BUTTON()==#B THEN GOTO @QUIT it stops working immediately upon pausing because that label is in the pause loop and that probably means i need to have it wait a quick second before un-pausing or quitting is allowed so that there's time to release the b button. and if that worked it would proceed to do this (it's not finished yet, i need the previous to work first): @QUIT SCENE=RND(1,1) IF SCENE==1 THEN GOTO @DETH1 and @deth1 is just one the few scenes that could play out upon quitting, nothing too special yet. i don't know if there's something outside of what i showed you that's messing this up or what's up with it.
    btw I'll be a playtester.
    also that will be very helpful if needed so thanks.
    Posted Edited by codinginept
  • #29 ✎ 986 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies Do you have the @DETH1 defined in your code? And is the @QUIT part in a function? Posted
  • #30 ✎ 114 Sam Amazing Page Hidden Achievements Great Page Hidden Achievements Good Page Hidden Achievements I was about to say something, but thanks to random_god's involvement I just realized that you can't use GOTO inside functions... Yeah, functions can be annoying sometimes. I have two ideas to solve this. One idea would be to replace the PAUSE function with @PAUSE 'In your main loop IF BUTTON(2) AND #B GOTO @PAUSE 'At the end of your code @PAUSE CLS ?"Paused" ?"Press X to continue" REPEAT VSYNC IF BUTTON(2) AND #B GOTO @QUIT UNTIL BUTTON(2) AND #X GOTO @LOOPFor beginners, this will work. The other option is to replace @QUIT with another function 'In your PAUSE function IF BUTTON() AND #B THEN QUIT 'At the end of your code DEF QUIT SCENE=RND(1,1) IF SCENE==1 THEN 'Your death scene ENDIF STOP END Posted
  • #31 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself thanks both of you. i'm going to see if i can get this to work. Posted
  • #32 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself i don't know how to move sprites other than with spofs. so i mean if there's something more convenient then i'd accept whatever it is. Posted
  • #33 ✎ 986 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    i don't know how to move sprites other than with spofs. so i mean if there's something more convenient then i'd accept whatever it is.
    For controls, SPOFS is the most convenient. For enemy movements/cutscenes, SPANIM is very useful.
    Posted
  • #34 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself
    For controls, SPOFS is the most convenient. For enemy movements/cutscenes, SPANIM is very useful.
    well while that does mean a solid bit of animation is gonna just not appear in the game, i suppose convenience is better in this case (especially for me because all this work i've been doing has taken a very small toll on my general self).
    Posted
  • #35 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself 2 thing i have to say: 1) well i've worked like a week maybe or something on this game and so far i have a title screen, one animation for an attack (2 if you count the single frame used for defending), a pause and quit function, and one of the few random scenes that would play out upon quitting. good progress i'd say. and 2) after hearing the banger soundtrack in super bearland, i think i wanna try to make some music myself (but if it's really not good at all i'll just revert to the preset music). so i'm gonna need some pointers, as per usual when i post in this thread. Posted
  • #36 ✎ 986 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    2 thing i have to say: 1) well i've worked like a week maybe or something on this game and so far i have a title screen, one animation for an attack (2 if you count the single frame used for defending), a pause and quit function, and one of the few random scenes that would play out upon quitting. good progress i'd say. and 2) after hearing the banger soundtrack in super bearland, i think i wanna try to make some music myself (but if it's really not good at all i'll just revert to the preset music). so i'm gonna need some pointers, as per usual when i post in this thread.
    Well, you could use RWIIUG0129's music. It's really good. I could send you the file. Or I could try to make music. I know how MML works. I'm just not a very good music composer. I prefer to play music lol
    Posted
  • #37 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself ok so bit of a development hiatus here. kinda burned out on this for right now. maybe i'll work on a platformer i kinda feel like doing that. Posted
  • #38 ✎ 986 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    ok so bit of a development hiatus here. kinda burned out on this for right now. maybe i'll work on a platformer i kinda feel like doing that.
    cool dont give up on this and don't make too many programs at once like I did (the stress lol)
    Posted
  • #39 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself
    cool dont give up on this and don't make too many programs at once like I did (the stress lol)
    yeah i think i'll just go back and forth on this and that because i tend to burn out easily.
    Posted
  • #40 ✎ 107 codinginept Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself ok i accidentally got an idea. i could try making an rpg or something that uses the battle system for this. Posted
1 2 3 4 5 6