Error while dealing with flxogmoloader

96 views
Skip to first unread message

YLJY

unread,
Sep 21, 2015, 11:40:39 PM9/21/15
to HaxeFlixel
Hii Guys.

I am new to the forum, so please forgive me for asking noob questions, rules etc.

I am in the verge of learning haxeflixel and I have encountered a problem.


I am trying to use flxogmoloader as follows:

package;

import flixel.addons.editors.ogmo.FlxOgmoLoader;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxState;
import flixel.text.FlxText;
import flixel.tile.FlxTilemap;
import flixel.ui.FlxButton;
import flixel.util.FlxMath;

/**
 * A FlxState which can be used for the actual gameplay.
 */
class PlayState extends FlxState
{
private var _player:Player;
private var _map:FlxOgmoLoader;
private var _mwalls:FlxTilemap;
/**
* Function that is called up when to state is created to set it up. 
*/
override public function create():Void
{
_map = new FlxOgmoLoader(AssetPaths.room001__oel);
_player = new Player(20, 20);
add(_player);


but when I try to compile the game, it gives me an error: 

C:/Users/theleper/lime/flixel-addons/git/flixel/addons/editors/ogmo/FlxOgmoLoader.hx:5: characters 7-26 : Type not found : flixel.math.FlxRect
source/MenuState.hx:14: lines 14-49 : Defined in this class
Build halted with errors.

Any Ideas what can make this error?

thank you so so much for the help.



Gama11

unread,
Sep 22, 2015, 5:26:55 AM9/22/15
to haxef...@googlegroups.com
You're using incompatible flixel verisons - from the looks of it, you got the dev branch of flixel-addons from GitHub, while core flixel is from haxelib.

Check the output of "haxelib list flixel".
Reply all
Reply to author
Forward
0 new messages