+atari2600land Posted October 3, 2020 Share Posted October 3, 2020 I started working on an entry and ran into a problem with the voice.playing variable. buttonheld=2 titleloop: wait if cont.button and buttonheld=2 then buttonheld=1 if cont.button=0 and buttonheld=1 then buttonheld=3 if buttonheld=3 then VOICE PLAY phrase : buttonheld=4 : goto main_setup goto titleloop main_setup: if voice.playing then buttonheld=4 else buttonheld=5 if buttonheld=4 then goto titleloop ...set up the rest of the game... It will say the phrase once and NOT go set up the rest of the game like I want it to. Is there a problem with my code? I'm going crazy. Quote Link to comment Share on other sites More sharing options...
+nanochess Posted October 3, 2020 Share Posted October 3, 2020 (edited) It is because when buttonheld goes to 4, then it enters into "titleloop" and in that section of code nothing checks for buttonheld equal to 4. Maybe you want to change one line to this: if buttonheld=4 then goto main_setup Edited October 3, 2020 by nanochess Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.