Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Armageddon on Mon 04/11/2013 00:56:14

Title: Question about particles in AGS
Post by: Armageddon on Mon 04/11/2013 00:56:14
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.
Title: Re: Question about particles in AGS
Post by: Khris on Mon 04/11/2013 12:37:38
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).
Title: Re: Question about particles in AGS
Post by: Snarky on Mon 04/11/2013 16:28:29
... and remembering the scaling factor of where they're standing.