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? |
Brian_Provinciano |
You can change the ego's animation easily with main.sc's SetUpEgo() procedure. See the info at: http://www.bripro.com/scistudio/help/scc/script_main.html |
Pikachu14 |
Uhhn...no. I mean, Ego walks through some dangerous area and suddenly trips over a rock or something. How do I make Ego trip? |
Lars Skovlund |
Pikachu14 wrote: 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? |
Pikachu14 |
Allright forget it. It works. "Specify: [ DIE ]" * BLAM! Monkeyman's head explodes! * "Whatever gave you the idea...." |
Joe |
Lars, that's a good idea, I would've done:
But your way is much better. Thanks |
Lars Skovlund |
Pikachu14 wrote: 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. (define CONTROL_EGO_TRIP $4000) /* This is ctlYELLOW */
|
Pikachu14 | Thanks, but I already figured it out! |