Milton's Blog

My thoughts, knowledge, and rants on game development
  • Making a web/mobile game: Resize vs Responsive

    If you are making web games you probably already use the "resize" property in your project.xml
    It allows you to simply *stretch* your game to match the target resolution without loosing the original aspect ratio.
    The downside is that you get ugly black bars where the ratio didn't match.
    Wouldn't it be cool if we could have an image to bleed out instead of those black bars?

    Join me in this marvelous journey into the realm of *responsiveness...*

  • 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? 😰