FlxCamera broken after Update

34 views
Skip to first unread message

Chosen Character

unread,
Feb 11, 2016, 3:51:39 PM2/11/16
to HaxeFlixel
Hey,

After updating my Flixel library (which I hadn't done in a month or so) FlxCamera completely broke. It now freezes on coordinates 0,0 and nothing I can do will change it. My game was working fine before, but after updating things simply aren't working anymore.

Were any variables/major things changed in FlxCamera? Is there a way to get an older version of flixel?


Chosen Character

unread,
Feb 11, 2016, 4:19:47 PM2/11/16
to HaxeFlixel
So apparently it's due to creating a new FlxOgmoloader... somehow.

I really don't know.

But it breaks as soon as I create a new FlxOgmoloader, it refuses to follow, scale.x/y are locked and cannot be changed manually, etc.

Chosen Character

unread,
Feb 11, 2016, 4:24:37 PM2/11/16
to haxef...@googlegroups.com
So you won't believe what it is. For some reason, and I really don't know why this is necessary, somebody decided to add setBounds in the constructor of FlxOgmoLoader. To fix this all you need to do is comment it out.

I have no idea why this is here, it wasn't here before and I hope it's not just someone trolling ._.

public function new(LevelData:Dynamic)
{
// Load xml file
var str:String = "";
// Passed embedded resource?
if (Std.is(LevelData, Class)) 
{
str = Type.createInstance(LevelData, []);
}
// Passed path to resource?
else if (Std.is(LevelData, String))  
{
str = Assets.getText(LevelData);
}
}

_xml = Parser.parse(str);
_fastXml = new Fast(_xml.firstElement());

width = Std.parseInt(_fastXml.att.width);
height = Std.parseInt(_fastXml.att.height);

//FlxG.camera.setBounds(0, 0, width, height, true);
}

Gama11

unread,
Feb 12, 2016, 2:50:18 AM2/12/16
to HaxeFlixel
The setBounds() call was actually removed from FlxOgmoLoader... What Flixel version are you using, dev? Are you sure you didn't downgrade instead of update?

Chosen Character

unread,
Feb 12, 2016, 4:20:19 PM2/12/16
to haxef...@googlegroups.com
Huh. I used haxelib to update/install and recently did a full uninstall/reinstall through that. 
--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/J42NXkVt_gM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+...@googlegroups.com.
Visit this group at https://groups.google.com/group/haxeflixel.
To view this discussion on the web visit https://groups.google.com/d/msgid/haxeflixel/e715089c-84f5-4eb7-982b-88b7073fea14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages