when gf clicked switch to background [background1 v] forever if <key [space v] pressed?> // Or whatever key you're using. switch to background [background2 v] endHope this helps.
Last edited by JH1010 (2012-08-24 05:30:23)
Offline
I'm not sure what you mean by button, if you mean keyboard key JH1010 has a great script for you, if you mean a sprite that is clicked here is my script. Ok heres the script that the sprite (button) will have:
when button clicked broadcast [next background]Here's the script that the stage will have:
when gf clicked switch to [background1]
when I recieve [next background] next backgroundThere you go! Hope I helped
Offline
The red blocks should be a control block that says "when button (name of sprite) clicked", a looks block that says "switch to background1" and another control block that says "when I receive next background (what's broadcasted)". Sorry for the issue
Offline
tree-hugger wrote:
I'm not sure what you mean by button, if you mean keyboard key JH1010 has a great script for you, if you mean a sprite that is clicked here is my script. Ok heres the script that the sprite (button) will have:
when [I am v] clicked //There's no drop down, but it's just a technical limitation. broadcast [next background v]Here's the script that the stage will have:when gf clicked switch to background [background1 v]when I receive [next background v] next backgroundThere you go! Hope I helped
Fixed.q
Offline