This game I'm making its a platform with a player that creates some boxes (limited use by mana) with mouse input (click - release and box is created with collision)
So my game is running good but the thing is, my mana bar seems to have a problem: when I create a box have limit of boxes by mana use, but when the last box is created if I try to create another one it just recreates the box from the initial point.
The other thing is the mana bar sometimes doesnt show the correct mana and gives the ability to create or not more boxes.
Oh and the boxes sometimes do crazy stuff, wich I don't want to.. They seem to be elastic and jump all over the place, can somebody help me?
Its a matter of finding the error on the event, I have done tons of possible ways but cant quite figure it out!!