How can I do that? I already did this and still can't figure it out. When the player is overlapping by the zombie Just subtract private variable "Health" by 33*timedelta. And how can I convert it to integer? Or is just my mistake?
And the result: (At the "Health: ")
Develop games in your browser. Powerful, performant & highly capable.
Answer me please!!
There are many ways: why not try
round(33*TimeDelta)
Doesn't work.
Did for me.
https://dl.dropboxusercontent.com/u/34306693/galaxian.cap
Look at last two events.
Is this what you mean?
I did EXACTLY what you did. Still doesn't work for me.
Then unless you show your work, there's nothing we can do.
There must be something else interfering with the events, or some other error, but without seeing it, we will never know.