Hi again,
In the example from Drew:
and in our code, it happens that adding a call to getBounds()
before getCenter()
makes getCenter()
to be updated (without having to interact with the view).
So let’s say in the slider callback I do:
console.log("Position!", actor.getPosition());
console.log("Bounds", actor.getBounds());
console.log("Center!", actor.getCenter());
getCenter()
is updated correctly
It is like getBounds()
does something more that getCenter()