The game is called Variety 1.2. I am working on it but the background does not work. Please look at my script... Ive been working on this for over 24 hours and I can not figure it out. The background to change into background6 does not work when I press "y". Instead my game get confused with the previous scripts... I have no clue of how to fix it.
Thank you for reading! If you figure this out I will love you as much as I love unicorns and butterflies.
Offline
I don't see any problem in the program you have. The background switches fine for me.
Offline
I looked at your script and I figured out what was wrong. When the key Y is pressed the background takes its command and switches to background6, but the background is also receiving the command to switch to background5 because it still hears the "Ask Alien" broadcast so it stays on background5. Hopefully that makes a little sense... anyway heres how you fix the problem:
In your astronaut sprite you have this script:
when gf clicked forever if <(Space Tokens) = [14]> broadcast [Ask Alien v] hide endThe problem with this is your astronaut is broadcasting "Ask Alien" forever. That means your background is receiving the command to switch to background5 forever so it can't switch backgrounds when y is pressed. Heres how to fix that.
when gf clicked if <(Space Tokens) = [14]> broadcast [Ask Alien v] hide endNow the astronaut will only broadcast the "Ask Alien" command once. It will switch to background5 then when y is pressed it will switch to background6. I hope that was helpful
Offline
Treehugger, if I use your techinque the game does not respond when I get up to 14 points in my game. It just stops. Thanks for trying though...
Offline
Oh whoops, I'm not giving up yet! I made a simple mistake here try this script - I tested it this time
when gf clicked wait until <(Space Tokens) = [14]> if <(Space Tokens) = [14]> broadcast [Ask Alien v] hide endBear with me here... this should work
Last edited by tree-hugger (2012-11-26 00:04:45)
Offline