FlxTileblock not working in windows.

  • Hi,

    I need help with this. I'm using FlxTileblock for backgrounds, and this work fine in Flash, and Neko, but is invisible in Windows.

    	_background = new FlxTileblock(0, 0, Math.ceil(FlxG.width * 1.2), Std.parseInt(this.properties.get("backH")));
    	_background.y = FlxG.height - _background.height - 30;
    	_background.loadTiles(Reflect.field(Reg,this.properties.get("back")), 256, Std.parseInt(this.properties.get("backH")));
    	_background.scrollFactor.set(.55, .15);

    This (Std.parseInt(this.properties.get("backH"))) is because i get this info from a TiledMap.
    This is the image https://drive.google.com/open?id=0Bw-GVZEumxhWTUdiemRNb09JaXM

    This are my settings
    actuate: [1.8.7]
    box2d: [1.2.3]
    flixel-addons: [2.2.0]
    flixel-demos: [2.3.0]
    flixel-templates: [2.1.0]
    flixel-tools: [1.2.1]
    flixel-ui: [2.2.0]
    flixel: [4.2.0]
    hxcpp: [3.3.49]
    layout: [1.2.1]
    lime-samples: [2.6.0]
    lime: [2.9.1] 3.3.0
    openfl-samples: [4.0.0]
    openfl: [3.6.1] 4.3.1
    swf: [2.3.0]
    Haxe 3.3.0

    I try changing to FlxSprite but was the same.
    Is the image the problem

  • Update:
    I think the problem is not FlxTileblock, is Reflect.

    I made a trace in the values for this.properties.get("back") and for Reflect.field(Reg).

    Mark as closed. The problem was that in Reg Class the var was declared "inline" and Windows don't accept that seems.

Log in to reply

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