So to make it easer I have a life bar sprite with 10 frames.
A persons life is 100.
In an enemy collision function, the sprite is updated with:
bar = display.NewImage(sprite_data,life/10)
However this seems to be slowing down my code (collision taking longer than expected or slows down).
When I remove the life bar, collisions and everything go smooth.
Does anyone have any examples on how they implemented the life bar?
I did this with another game I made and the same thing is happening.