animation after dialog, and death

Started by , Sun 12/02/2006 13:45:12

Previous topic - Next topic

spacedude

I have a room with a dragon in it, the dragon is not really a character, its a part of the backround image, put ive painted a hotspot over is, so the player can talk to it and see it.
ive painted a sequence of 7 images of fire coming out of the dragons mouth.

1. How do i now put this images on the dragon, when the players says the wrong thing in the dialog to the dragon?
2. How do i write a "your dead now, restart game?" textbox after it?

Ashen

#1
1.
Use an object. Uncheck the 'Object is initally visible' box in the editor, and just turn it on & animate it when you need to.
(Useful BFAQ entry: Running regular code in dialogs).

2.
Depends.
If you just want a text box, use a Display(..) command followed by whatever you want to happen, e.g.:
Code: ags

Display("You're dead. Get ready to try again...");
RestartGame();

(BFAQ: How to win/lose/kill off your character. In fact, take a look through the BFAQ next time you have a question - it might well be in there already)
Or, you might want to create a GUI with Reload/Restart/Quit buttons on.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk