It's a bug or i have a problem with my eyes

26 views
Skip to first unread message

Marcin Korba

unread,
Oct 2, 2015, 3:15:22 PM10/2/15
to HaxeFlixel
Hello when trying to make five point of tutorial from here http://haxecoder.com/post.php?id=49, although modified by me to load map with tiled library from addons, and additionally use Level class from one of demos(FlipRotationAnimationTiles) i came to problem when my square doesn't move after investigation it was one line in FlxTilemap.hx (495) in loadMap method which is:
for (i in 0...length)
{
 tileObjects
[i] = new FlxTile(this, i, _tileWidth, _tileHeight, (i >= DrawIndex), (i >= CollideIndex) ? allowCollisions : FlxObject.NONE);
}

In a case when we have i >= CollideIndex we use the variable allowCollisions (in my case all besides first tile) which i can't find defined either locally in method or in class, so i wanted to ask if this is a bug or just i'm blind?
Reply all
Reply to author
Forward
0 new messages