Author Topic: Suggestion: Auto-mode for FlxG.followBounds  (Read 1750 times)

xmorpher

  • Member
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Suggestion: Auto-mode for FlxG.followBounds
« on: Wed, Dec 9, 2009 »
I think there should be an Auto-mode in FlxG.followBounds();
to automatically set the bounds according to the map size,
let's say the map has 100x50 blocks,
and each block is 16x16, then, the bounds should be:
FlxG.followBounds(1, 1, 1600 - 1, 800 - 1);       // (x: 1600= 100*16 ,y: 800 =50*16)

i know this is easy to implement, but it seems like something that should be part of the engine

Regards!

Adam Atomic

  • Founder
  • Key Contributor
  • *****
  • Posts: 852
  • Karma: +0/-0
  • new dad
    • View Profile
    • Adam Atomic
Re: Suggestion: Auto-mode for FlxG.followBounds
« Reply #1 on: Wed, Dec 9, 2009 »
DONE - you can now call FlxTilemap.follow() :)  will be up on github in a few minutes...