FAQ Database Discussion Community


Xml data referencing and flixel

xml,actionscript-3,flixel
I have started using XMLs for the first time in flixel, and I have run into some trouble. I am trying to get the tileset out of this: <Ground tileset="Tiles" exportMode="CSV"> //some code </Ground> I have tried: Ground.tileset and [email protected], this may be a very simple solution... but I haven't...

How to make projectile motion in flixel + as3

actionscript-3,projectile,flixel
So I have my character, who when I press the mouse button, should fire off a few lasers, to take out those bad guys. Currently I add my little laser. Then I use this: this.velocity.x = (MousePos.x - StartPos.x) * bulletSpeed //same for Y (I have also tried this) this.x...

Set certain position of FlxSprite's loadgraphic method

haxe,flixel,haxeflixel
I have 122*16 image. It have seven colors, and I use only one color of block. but, loadGraphics in FlxSprite class just use width, height How do I use certain position of image? example, I choose 0, loadGraphics pick up the position width, height(0 to 15, 16), choose 1, (17...

Make an FlxSprite behave as the child of another FlxSprite

sprite,flixel,haxeflixel
In Flixel, you cannot add an FlxSprite into another one, like you could with Flash API (Sprites were subclasses of Display object). So if you want 2 Sprites to behave like parent and child, you still have to animate them separately. This can become a nightmare if you use Tweens...

References in XML data with flixel + Actionscript 3

xml,actionscript-3,flixel
So I have this in an file which has been turned into a xml file. This file has an array in it, with a specific set up, like this: <level morestuff> <Ground tileset = "Tiles" exportMode = "CSV"> //info </Ground> </level> How would i got about getting a) tileset b)...