I know this is likely a dumb question but theres a bug in my game where if you press any button during a level transition immediately after the level transition it sends you to a different level!
2 Likes
Probably just make a simple “levelTransitioning” variable that you set to false normally and true only when the level is transitioning, then just have an “If < not ( levelTransitioning ) >” around all the code in the button press functions and stuff.
7 Likes
alright thanks again! i couldve sworn there was a block for that LOL
1 Like
If you were using the “control (mySprite) with buttons” block then you could use that block with x and y speed set to 0 to stop the player from moving, but that doesn’t work for your code. Maybe that’s what you were thinking of?
1 Like
thats not quite right i remeber there being a block in the controller tab
1 Like