Milton's Blog

My thoughts, knowledge, and rants on game development
  • How to change the anchor point of an object in OpenFL

    You have your graphic, you just need to rotate it 90º. You set the rotation variable and... Wait... where did it go?
    Your platformer character has to turn around, just set scaleX to -1 and... Wait... why did it step left?

    If this is you, you are probably suffering from the fact that the anchor point for all objects in OpenFL is located on the top-left-most point of it.
    But... there must be a simple way to set the anchor right?... Right? 😰