player death problem

Non-platform specific questions.

player death problem

Postby Fl3tch » Fri Feb 02, 2007 11:54 am

partly through my game i have a swamp pit at the bottom of the screen and when my character falls into it i want him to die and the game to return to the main menu. i have made it so the character can fall through the water but at the monet the game carrys on and you run around out of view (underneath the game view).

how do i do this?

help please
thankyou
Fl3tch
 
Posts: 11
Joined: Wed Jan 17, 2007 9:33 am
Score: 0 Give a positive score

Postby Troodon » Fri Feb 02, 2007 2:44 pm

You can change view's moving and parent just like the other actors.
You can use also the event -> if out of vision -> destroy actor
I think the easiest way is to use the loadgame function. Just write the whole name of game file
(gamaname.ge when you try it and for example gamename.exe when it's exported to exe)
:) I hope this helped.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Game A Gogo » Sat Feb 03, 2007 1:09 am

as mentioned before, you don't need to input the extension, it will just try to find the filename whiteout the extension, works for me
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


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest