Author Topic: Flixel v2.43: FlxSprites outside the screen does not collide  (Read 1038 times)

werem

  • Member
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
* I'm ussing Flixel v2.43,
* the player starts the level on position 0, 230
* the camera follow the player
* The enemyes are placed on the create() method
* All the enemys outside the screen does not collide with the terrain and fall into the void.

I see several posts regarding this issue, but none of the solutions seems to aply(IE, my FlxG does not support the FlxG.worldBounds method)

Any help will be wellcomed.

wg/funstorm

  • Global Moderator
  • Key Contributor
  • *****
  • Posts: 596
  • Karma: +0/-0
    • View Profile
    • Funstorm
I think it was just called something different. FlxU.setWorldBounds?

werem

  • Member
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
I'm araid not, there is only a FlxG.followMax and FlxG.followMin, but none of them allow you to set the UpdateWorldBounds variable.

werem

  • Member
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
I just try the FlxU.setWorldBounds with the width and height of the tilemap, but the enemys keep falling of the world.