Dilemma with respawn player after bomb explosion

Game Editor comments and discussion.

Dilemma with respawn player after bomb explosion

Postby DocRabbit » Sun Apr 29, 2007 5:54 pm

Hope you guys can give me a direction to go here. Let me give you the scenario.

I have a game I am working on with lumberjack who carries bombs to kill the tree shadow monsters. The bomb itself is comprised of 2 actors, the sparking bomb and the explosion. The bomb is only fatal during the explosion time, which dies out after about 2000 ms. My player, when he dies from anything, displays a pool of blood/bones for about 2999 ms and then respawns at 3000ms near the sawmill. Both bones and respawn when killed by the tree shadow monsters are tied to a timer and all works fine. I am trying to figure out a way that when the bomb kills the player to get the same effect since the bomb explosion dies before the players death scene finishes.

I hope this gives an explanation of what I am trying to do, just wondering what I should tie the timers to since the explosion is destroyed before the death scene.
User avatar
DocRabbit
 
Posts: 114
Joined: Fri Oct 27, 2006 2:56 am
Score: 10 Give a positive score

Postby Sgt. Sparky » Sun Apr 29, 2007 9:29 pm

I always use scripted activations events.
for your timer events you should set up a variable called action,
that way you can tell who kills who,
if you kill the enemy,
Code: Select all
action = 0;

if you kill the player,
Code: Select all
action = 1;

and use the if statements to determine what you need to do.
this can let you create a different timer or somthing like that with the same event. :D
if you still need help,
let me know. :)
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron