Jump to content

Is it possible to "bind" text to a sprite?


Recommended Posts

Let´s say I want an hp bar over the enemy. Is it possible to bind the hp bar to the enem? So that it moves whereever the enemy is moving?


Sure, I could realise this by saying the following in the update function:

hpbar.image.x = enemy.image.x

hpbar.image.y = enemy.image.y

But is there another way?

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...