dzaky Alkaff
Change the included eventsheet to:
rEdge = invisible sprite at the right edge
lEdge = invisible sprite at the left edge
Level = global variable
LevelBefore = global variable //newline
maxLevel = global variable with the number of your levels
+ on collision rEdge
++ Level != maxLevel
--- LevelBefore = Level //newline
--- Level + 1
--- Go to Layout by name("Layout"&level)
+ on collision lEdge
++ Level != 1
--- LevelBefore = Level //newline
--- level - 1
--- Go to Layout by name("Layout"&level)
+On start of Layout // newline
++ System compare variable: Levelbefore > Level
--- Set Player.X to rEdge.X - 100 ...
++ else
--- Set Player.X to lEdge.X - 100 ...