So, when the game is supposed to get to the second level, the game automatically goes to the third level and skips the second level. (floor sprite glitch)
player
touches Sprite
, which changes the level with the when <touching [player]>
script.
player
stays where it is (touching Sprite
) until it goes to the edge.
Two things I thought of that you can do:
- add
wait until <not <touching [player]>>
at the end of thewhen <touching [player]>
script, or - delete
Sprite
(you won't need it for this) and putsend [level 2] to [ground]
in thewhen <touching [edge]>
script.
do this:
instead of this:
i did it and it worked for me
the problem with the second one, is that when the user falls down a pit, or touches the left side, it goes to the next level.
I would suggest putting at the end of the when player script in the sprite called Sprite. I tested it out, and it works just fine.
also i see you used my platformer script
Yeah, it helped a lot, thanks!
Yeah, but then it wouldn't go to the next level...
yes it does, try my solution
click the eye to see inside
but also add
[scratchblocks]
when <(y position)<(-180)> :: hat control
die code :: grey
[/scratchblocks]
Oh, I put it in the wrong sprite lol. I am moving it to the sprite.
(btw I am not experienced with making games)
Eh? I don't see the "die code" block anywhere....
thats just a place holder for your code