Question about particles in AGS

Started by Armageddon, Mon 04/11/2013 00:56:14

Previous topic - Next topic

Armageddon

I'm wanting to make a game that's set in a cold environment and I was curious if/how particles could be done in AGS to create an effect of seeing the player character's breath in the air. I found this http://www.adventuregamestudio.co.uk/forums/index.php?topic=26379.0 but it's obsolete now. Any ideas how it would bee done? I'm thinking something like spawning a sprite at the players head that animates a view but I don't know how to do that. I could also just put it in the idle animation but then wouldn't be able to see it when walking and would cut off if you moved while your breath was dispersing.

Khris

Yes, spawn a sprite.
In repeatedly_execute, count game frames, turn them into seconds, and each three or four seconds, spawn the breath animation.
The position is easily calculated using the player character's position and their loop (to find out which way they're facing).

Snarky

... and remembering the scaling factor of where they're standing.

SMF spam blocked by CleanTalk