Page 1 of 2

how do i make my player die like MARIO OR SNOW BROS OR SOMET

PostPosted: Mon Aug 20, 2007 5:37 pm
by Spidy
how do i make my player die like MARIO OR SNOW BROS OR SOMETHING
plz help me i have no time :cry:

PostPosted: Mon Aug 20, 2007 6:07 pm
by J Maker
just add a collision on your enemy: destroy actor->event actor :D

PostPosted: Tue Aug 21, 2007 4:28 pm
by Spidy
OK THANKS :wink: I TRY and i more question how do i make life bar or health bar

PostPosted: Tue Aug 21, 2007 5:00 pm
by J Maker
here is a health bar and have on draw actor of your health bar actor destroy actor player and wait for frame 10 and collision with enemy=
Code: Select all
healthbar.animpos ++;
then on create actor healthbar change animation to healthbar STOPPED

Re: how do i make my player die like MARIO OR SNOW BROS OR S

PostPosted: Tue Aug 21, 2007 6:30 pm
by Troodon
Spidy wrote:how do i make my player die like MARIO OR SNOW BROS OR SOMETHING
plz help me i have no time :cry:


Doesn't Mario jump up and then fall until it disappears from the view?
Then you can make a path and destroy the actor once it ends the path.
Of course the player will use the path when it dies. :wink:

Re: how do i make my player die like MARIO OR SNOW BROS OR S

PostPosted: Tue Aug 21, 2007 9:03 pm
by J Maker
tekdino wrote:
Spidy wrote:how do i make my player die like MARIO OR SNOW BROS OR SOMETHING
plz help me i have no time :cry:


Doesn't Mario jump up and then fall until it disappears from the view?
Then you can make a path and destroy the actor once it ends the path.
Of course the player will use the path when it dies. :wink:
OH you want him to jump up and fall down! here this explains checkpointsand dying like mario :D

PostPosted: Wed Aug 22, 2007 4:39 pm
by Spidy
THANK YOU :D

PostPosted: Wed Aug 22, 2007 5:38 pm
by J Maker
your welcome!

PostPosted: Thu Aug 23, 2007 4:20 pm
by Spidy
there is a problem in your code view problem when i get checkpoint and go far and die my player could not start from checkpoint

PostPosted: Thu Aug 23, 2007 4:25 pm
by J Maker
?...oh i got it :D is the veiw parented?
try using this veiw code:
Code: Select all
double weight = 10;
x = ((weight  - 1)*x + (player.x - width/2))/weight;
y = ((weight  - 1)*y + (player.y - height/2))/weight;

PostPosted: Thu Aug 23, 2007 4:32 pm
by Spidy
ok thx :lol:

PostPosted: Thu Aug 23, 2007 4:33 pm
by J Maker
with that veiw code it normaly works for me so try it out :D

Re: how do i make my player die like MARIO OR SNOW BROS OR SOMET

PostPosted: Sat Aug 25, 2007 5:50 pm
by Spidy
no man its not working plz wrote the tutorial in the forum :cry:

Re: how do i make my player die like MARIO OR SNOW BROS OR SOMET

PostPosted: Sun Aug 26, 2007 12:17 am
by J Maker
wat do u mean is it not loading a file or is the code not working

...

PostPosted: Wed Aug 29, 2007 1:40 am
by Bee-Ant
The player died like "Mario"???like my Mario game :twisted: , or other Mario game??? :roll:

use this rules for Player:

Draw Actor
Code: Select all
if(power<=0)
{
DestroyActor("EventActor");
}


Destroy Actor
Create Actor>DiedPlayer

use this rules for DiedPlayer :

Create Actor
Code: Select all
yvelocity=yvelocity-5;


Draw Actor
Code: Select all
yvelocity=yvelocity+0.5;


Hope help :roll: :roll: :roll: