A friend of mine made a game, and they need help. I cant find out what is wrong. The second level is laggy and looks weird. Go to the purple thing to go to the 2nd level.
1 Like
Variables only contain the most recently created sprite, so all those Destroy ( “Spike…” ) blocks are only removing the last spike created using those variable names. This causes the level to look really weird, because the spikes from the level before are not destroyed. Having that many sprites in the game at one time is why the level is very laggy as well. Instead of destroying just those Spikes contained in the variables, you should be using something like “destroy all sprites of kind (enemy)” like so:
Then you must make sure that all spikes are created with the spriteType “enemy” and they will all get destroyed correctly!
2 Likes
Wow that is strange but this game has potentiol!
1 Like
thanks, that helped
1 Like