checkpoints

Talk about making games.

checkpoints

Postby Oman » Thu Nov 09, 2006 11:54 pm

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
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby sonicfire » Fri Nov 10, 2006 9:34 am

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;
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby Oman » Fri Nov 10, 2006 1:18 pm

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
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby sonicfire » Fri Nov 10, 2006 3:13 pm

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
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby makslane » Fri Nov 10, 2006 3:44 pm

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
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Game A Gogo » Sat Nov 11, 2006 12:50 am

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!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby robin.deman » Mon Jan 22, 2007 9:01 am

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).
User avatar
robin.deman
 
Posts: 70
Joined: Sat Nov 12, 2005 9:50 am
Location: Netherlands
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest