This forum is read only and just serves as an archive. If you have any questions, please post them on

10 years ago by manuelac

How can I update coordinates ?

// in entities/creep.js
draw: function() {, this.pos.x, this.pos.y);

this doesnt work. it effectively draws the creeps HP but the position is way off... it is not on top of the entity.

any ideas?

10 years ago by Joncom

You may have to account also for screen position.

draw: function() {
    var x = this.pos.x +;
    var y = this.pos.y +;, x, y);

10 years ago by manuelac

thanks this solved this problem :)
Page 1 of 1
« first « previous next › last »