@Taconito wrote:
I'm creating a game. My PG character has an animation that alternates 2 jpg, to create animation, using the sin of ofGetElapseTime().
When my PG is hit, I want an explosion to appear around him. This explosion is a 3 jpg sequence, which uses ofGetElapseTime .... that stops with a ofResetElapsedTimeCounter (). This explosion must only run when the PG is hit.The problem is that the "time" methods are global .... so even if I create an explosion class, theResetElapsedTimeCounter () also blocks my PG animation.
How can I do?? the solution would be to have something counting seconds apart fromGetElapseTime's global count, i think, but i don't know how to do it.
Posts: 1
Participants: 1