how do you kill people

Game Editor comments and discussion.

how do you kill people

Postby pdude1 » Mon Jun 30, 2008 6:35 pm

I just got this thing yesterday and i am doing pretty good but i cant find out how to make it so when i jump on peoples heads they die or fall or dissapear so for now thats all i need to know
help me
does anyone know a good signiture
User avatar
pdude1
 
Posts: 10
Joined: Sun Jun 29, 2008 8:30 pm
Score: 0 Give a positive score

Re: how do you kill people

Postby Thanx » Mon Jun 30, 2008 8:06 pm

Hey! Well these are your possibilities:
- In the on collision event, if you want the actor to disappear, then either set its transp to 1, and if you want him to restart from somewhere else, you'll only have to set his x and y, and reset transp to 0. You could also DestroyActor, which is good cause when you create him again, then also the On create event happens, which you might want to use...

Or you can say in the collision evet, to change animation - dieing animation, and in the AnimationFinish event of that animation do some of the above...

Have fun with GE! :wink:
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: how do you kill people

Postby J Maker » Mon Jun 30, 2008 8:43 pm

or sometimes what i do is in the draw actor of enemy:
Code: Select all
if (canTransp == 1)
{
    transp += .05;
}

and in create a variable named: canTransp
then in create actor of enemy put:
Code: Select all
canTransp = 0;


then give the enemy a collision on bottom side of player:
Code: Select all
canTransp = 1;


the transp += makes him fade out to give him a cooler death than just vanishing in a split second.
Some people believe Chuck Norris evolved from a dinosaur, the Chucknorisaurus.
----------------------------------------------------------------------------------
Chuck Norris doesn't sleep, he waits.
----------------------------------------------------------------------------------
Chuck Norris doesn't hunt, he kills.
----------------------------------------------------------------------------------
Chuck Norris once shot down a german fighter plane with his finger by yelling BANG!!!
----------------------------------------------------------------------------------
User avatar
J Maker
 
Posts: 177
Joined: Fri Jun 22, 2007 4:17 pm
Location: in the stick version of Hyrule
Score: 10 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron