Page 1 of 1

checkpoints

PostPosted: Thu Nov 09, 2006 11:54 pm
by Oman
K guys i got a question can anybody tell me how to make a checkpoint in my game so when the player actor dies he will go back to the last checkpoint he touched

thx in advance :D

PostPosted: Fri Nov 10, 2006 9:34 am
by sonicfire
Use global variables like x_checkpoint and y_checkpoint.

Then create your checkpoint actor(s) and when the player touches one (collision), read the coordinates from this checkpoint into your global x and y checkpoint variable. Then destroy this checkpoint actor.

Now, when the player dies, you have the last checkpoint coords in you global x and y checkpoint variable. so, just place the player there:
Code: Select all
player.x = x_checkpoint;
player.y = y_checkpoint;

PostPosted: Fri Nov 10, 2006 1:18 pm
by Oman
k i got the begining could you explain the directions a little more easily for us noobs

like in laymens terms im still in the test version and would reallly like to know this :D thx

PostPosted: Fri Nov 10, 2006 3:13 pm
by sonicfire
damn, i suck at making tutorials, especially when i have to talk in english in realtime :lol: :lol:

but perhaps its still useful for you, i made a short video here:
http://www.prodyon-virtual-gear.com/stu ... points.wmv

let me see if i can make another one, more slowly an in-depth :oops: :D

PostPosted: Fri Nov 10, 2006 3:44 pm
by makslane
Thank you for this tutorial :-)

Remember you can use the saveVars function to save your vars to a file.

Look more here:
http://game-editor.com/forum/viewtopic.php?t=534
http://game-editor.com/forum/viewtopic.php?t=2192

And get this example:
http://game-editor.com/examples/savevars.ged

PostPosted: Sat Nov 11, 2006 12:50 am
by Game A Gogo
you gave me the taste to make one of my own! it find funny when you kept click at the same place over and over again, :P, anyway, great tut.!

Hey makslane, you should do a video tutorial section on he GE forum!

PostPosted: Mon Jan 22, 2007 9:01 am
by robin.deman
I agree, this should be pretty usefull!

This way people could upload their video tutorials.
Also, i would recommend to put up an tutorials section on this board.

Something like:
game-editor.com Forum Index -> Game Development -> Tutorials:
Platform games -> Actor/Player -> Jumping
Platform games -> Actor/Player -> Health
Platform games -> Actor/Player -> Lives
Platform games -> Enemy's -> Health
Platform games -> Levels -> Level up
Platform games -> Levels -> Game over

etc.

This way it should be easier to find tutorials instead of looking at every toptic.
Also, others who find out new and easier scripts could share it and others could see how it really works, step by step.

If people would like to make video tutorials, i advice to take a look at the trail version of Camtasia, it works perfect for making online video's in WMV or SWF (flash).