ForgeableSum Posted December 16, 2014 Share Posted December 16, 2014 Is there a way to move geometric objects, like a rectangle? I try enabling a physics and moving with moveToXY and I get an error when I try to move it. Uncaught TypeError: Cannot read property 'velocity' of undefined What I am trying to do is to display a health bar above a sprite. When the sprite moves, I want the healthbar to move a long with this. I'm not sure the best way to go about doing this though. I don't even know if using a rectangle is the best approach. Maybe I should use a second sprite for the health bar? Would that be sort of inefficient? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.