|Pikachu14||Allright, I got this Ego character and I want him to do shyte, like dying in several nasty ways and stuff. I can do the Death dialog window, but how do I handle the animations?|
You can change the ego's animation easily with main.sc's SetUpEgo() procedure.|
See the info at:
I mean, Ego walks through some dangerous area and suddenly trips over a rock or something.
How do I make Ego trip?
Control lines. Choose a colour and draw on the control map of your picture. Define a constant that identifies the colour (this will clarify your code somewhat). Then put something like this in the doit of your room script:
Then define egoTripScript accordingly. You can use the End cycler to play an animation once and have the controlling script notified:
Then in the second state of your script, you call the death handler as usual.
|Pikachu14||...Thank you. I'm gonna try that now...|
|Pikachu14||Errrm...how do I define EgoTripScript?|
Allright forget it. It works.|
[ DIE ]"
* BLAM! Monkeyman's head explodes! *
"Whatever gave you the idea...."
Lars, that's a good idea, I would've done:|
But your way is much better. Thanks
I have drawn a yellow control line on the picture and added the sample death icon to the game as view number 5.
This will cycle the death icon once, wait a short while and then run the standard death handler.
|Pikachu14||Thanks, but I already figured it out!|