One of my students made a maze game, but the code isn’t working properly. When the sprites hit the win block, the script should run. Nothing happens. Should I have the end position be a graphic, like a gold coin or something instead?
Any tips or advice to fix it and make it work like intended?
Thanks
Link to Maze Game
The problem is that the win condition is only checked if (time left) is 0.
Not only that, but this will only run once anyway, since the when <> block only triggers once when the boolean becomes true (but it triggers again if it becomes false and then true again).
I also have another suggestion, instead of using when [space V] key pressed to start/restart the game, you should use when flag clicked since the point of the green flag button is to start/restart the project.
you need to show the sprite first:
(do this for all 3 sprites)
I have a suggestion, instead of duplicating the sprite 3 times and making minor changes, just give 1 sprite 3 costumes.
AND
is true
But it’s already visible, or at least the selected character