Its easy ,try to use variable.If you have doubt in variable ask me
Offline
so, just do this. On the background script,
when gf clicked set [level v] to [1] switch to background [background 1 v] forever if <(level) = [2]> switch to background [background 2 v] endAnd on the moving sprite, do this.
when gf clicked forever if <<([background # v] of [stage v]) = [1]> and <touching [door v]?>> set [level v] to [2] go to x: [0] y: [0] endthat should work. Hope this helps!
Offline
Liamadams wrote:
so, just do this. On the background script,
when gf clicked set [level v] to [1] switch to background [background 1 v] forever if <(level) = [2]> switch to background [background 2 v] endAnd on the moving sprite, do this.when gf clicked forever if <<([background # v] of [stage v]) = [1]> and <touching [door v]?>> set [level v] to [2] go to x: [0] y: [0] endthat should work. Hope this helps!
Or you could try this:
when gf clicked forever if <touching [purple door v] ?> change [level v] by (1) broadcast [change background v]//for the background level changing go to x: [230] y: [-90] endHope that helped!
Offline
7734f wrote:
Liamadams wrote:
so, just do this. On the background script,
when gf clicked set [level v] to [1] switch to background [background 1 v] forever if <(level) = [2]> switch to background [background 2 v] endAnd on the moving sprite, do this.when gf clicked forever if <<([background # v] of [stage v]) = [1]> and <touching [door v]?>> set [level v] to [2] go to x: [0] y: [0] endthat should work. Hope this helps!Or you could try this:
when gf clicked forever if <touching [purple door v] ?> change [level v] by (1) broadcast [change background v]//for the background level changing go to x: [230] y: [-90] endHope that helped!
With regards,
~7734f
well my post is more specific, the might not know about
when i receive [your text here v]yet.
Offline
Thank you for that, but 7734, yours didn't work. My problem is that when it changes from level 1 to level2, i have the script say, if it's level 1 switch to level 2, and when it's level 2, switch to 3. So the problem is that the script doesnt change my sprites position to not touching the door fast enough, that it triggers level 1 to level 2, and while it's level 2, before it activates moving my character to the edge of the level, it still is touching the door and therefore triggers 2 to 3
Offline