I created the level passing but when i go from button start to level 1, after i pass the first door i go to the last(End) layout.
Develop games in your browser. Powerful, performant & highly capable.
lets say you have 3 layouts called : level1,level2,level3
so in first level you will put door with variable = 1
on second level will be = 2, and on 3rd = 3 so
if player collision with door go layout "level"&door.variable+1