Hi,
I've added an actor in the sceen and scaled it (editor). Now I need the width or scale factor during runtime. The problem is, I get the width of the original actor (100%). I've tried this:
print[Code:[actor.sprite.width]]
width is the width of the original actor, not the scaled
print[Code:[actor.bodyScale.x]]
scale is 1
print[Code:[actor.currSprite.scale.x]]
[LOG] Msg = com.stencyl.models.Actor has no field currSprite
Do anybody know how to get the current width or scale?
Thanks a lot.