I think my game is freezing and I'm not sure why

I’m testing how I might do a level system in a space shooter style game (Currently without shots) but my menu cursor frezes up after the second level is cleared and I can’t for the life of me find out why, thoughts?

https://arcade.makecode.com/S95479-08528-85793-13862

2 Likes

At the end of level one, “level” is set to 0 in the LevelSelect function, and “kills” = 5, so this calls “LevelSelect” over and over again, continuously resetting the selector sprite position by killing and creating it again over and over, which makes it look like it’s not moving at all.

4 Likes

Thanks a bunch, I got it working :>

2 Likes

dang your smart lol

1 Like

Thanks! I’ve been helping people with their code here for a while now. A year away from the forums is a big thing to return from just to compliment me lol :smiling_face: