#how to make a checkpoint
1 messages · Page 1 of 1 (latest)
they arent that complicated
Create a vector global and in a checkpoint obj add a collision detector, in the when collision starts (make sure only player/main actor can collide) do
Set (Vector var) = self x,y
And in the player when dying, find respawn block and change the spawn loc to set loc and simply change the (0, 0) to the vector var i think
Oh and i almost forgot that you need to put this in the main actor's when object starts/initializes
Set (vector var) = self x,y so it starts as the spawn location
is that 4.x
Pretty sure it works on both versions
was gonna answer this question but your script works ig
if you want something a little bit simpler you can make a checkpoint flag with this script (make sure to also make an array global variable with two inputs)
and when the main actor died do this hell of a script
Just use a vector
It's simpler
alr thanks
this may be annoying but how do i get respawn x,y and how do i put the axis x and y together
global variable
numbers array
remove the save.d saved progress thingy and replace it with global variable
then you can select the array
you can put global variables into the attribute block on the empty slot
that way you can get this
do the same thing two times, like this "extract" thingy is when picking the Nth item
then add a block like that, remove the two digits to make empty slots
then put the "extract item" into the empty slots, the 1st item going into the first slot and the 2nd item going into the second slot
got it
remove the weird crosshair thing and put the X,Y thing (with the array) into the empty slot
yeah thats correct
also the other dying script is your choice
you can use the preset one, use an animation or however you like it
make sure to always put the respawn block in the end
hope this helped
is it done

yes
Or just use X, Y