Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Checkpoint and Killbrick
- Drumboy48
-
Scratcher
6 posts
Checkpoint and Killbrick
Hello everyone! I'm trying to make it so that my sprite hits another sprite but it resets. A checkpoint and a kill brick. I've experimented and have done multiple things to try and get it to work, but it isn't. Can anyone help?
- NicolasBlasquez
-
Scratcher
21 posts
Checkpoint and Killbrick
Hi! If you want to make a checkpoint, you can save the character position, so if the player loose, you teleport him to the checkpoint. Also, you can save the stage's number to teleport the player back to the previous background.
I hope this note was helpful!!!
when green flag clicked
forever
if <touching [Checkpoint v] ?> then
set [X v] to [x Position]
set [Y v] to [y Position]
end
if <touching [Trap v] ?> then
go to x: (X) y: (Y)
end
end
I hope this note was helpful!!!

- Discussion Forums
- » Help with Scripts
-
» Checkpoint and Killbrick


