Its easy ,try to use variable.If you have doubt in variable ask me
Offline
so, just do this. On the background script,
And on the moving sprite, do this.whenclicked
setlevel ▼to1switch to backgroundbackground 1 ▼foreveriflevel=2switch to backgroundbackground 2 ▼
that should work. Hope this helps!whenclicked
foreverifand=background # ▼ofstage ▼1touchingdoor ▼?setlevel ▼to2go to x:0y:0
Offline
Liamadams wrote:
so, just do this. On the background script,
And on the moving sprite, do this.whenclicked
setlevel ▼to1switch to backgroundbackground 1 ▼foreveriflevel=2switch to backgroundbackground 2 ▼that should work. Hope this helps!whenclicked
foreverifand=background # ▼ofstage ▼1touchingdoor ▼?setlevel ▼to2go to x:0y:0![]()
Or you could try this:
Hope that helped!whenclicked
foreveriftouchingpurple door ▼?changelevel ▼by1broadcastchange background ▼for the background level changinggo to x:230y:-90
Offline
7734f wrote:
Liamadams wrote:
so, just do this. On the background script,
And on the moving sprite, do this.whenclicked
setlevel ▼to1switch to backgroundbackground 1 ▼foreveriflevel=2switch to backgroundbackground 2 ▼that should work. Hope this helps!whenclicked
foreverifand=background # ▼ofstage ▼1touchingdoor ▼?setlevel ▼to2go to x:0y:0![]()
Or you could try this:
Hope that helped!whenclicked
foreveriftouchingpurple door ▼?changelevel ▼by1broadcastchange background ▼for the background level changinggo to x:230y:-90
With regards,
~7734f
well my post is more specific, the might not know about
yet.when i receiveyour text here ▼
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