Rotating level



  • Hi,
    I am trying to figure out how I want my game to look like.
    The player will wander around, the view will be top-down, and I have to decide if the orientation will be fixed for the player or for the level: will the player rotate around its pivot or will the level will rotate around the player?
    Are there examples of the latter approach?

    About a scrolling level, do I have to take care of what parts/tiles of the level are visible and must be drawn or there is a premade function/library/something that does it for me already? If it exists, will it work for a rotating level too?

    Thanks



  • If not mistaken, you can do a FlxG.camera.angle, and rotate as you will. You will have to reverse your character movement and keys, as well.



  • @claudio-ficara yeah! Sounds exactly like what I need!


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.