Questions tagged [flixel]

Flixel is a free open-source game-making library written in ActionScript 3.

Flixel is a free open-source game-making library written in by Adam Saltsman.

Flixel provides features common to many game engines, including collisions, simple physics, particle effects, tile maps, saved games, etc.

Resources:

65 questions
3
votes
1 answer

AS3 - How do I import variables from a text-based file?

I couldn't find a good, clear question and answer for this in StackExchange, so I'll pose this as clearly as I can and hopefully get a clear, concise answer. Suppose I have a .txt* file with variables for a bunch of objects of one type that I was to…
Mar
  • 7,765
  • 9
  • 48
  • 82
3
votes
3 answers

Better way to include images in AS3 than embed?

I am putting together a Flash game (using Flixel) and I have a lot of sprites whose images (.png format, mostly) I need to include in my game. I'm used to using code like: [Embed(source = "../../lib/ship-0001.png")]private var…
Mar
  • 7,765
  • 9
  • 48
  • 82
2
votes
2 answers

AS3/Flixel: "Access of possibly undefined property."

Pretty new flixel/AS3 user here, though not entirely new to coding. Anyways, the error is pretty straightforward in it's cause, but not it's solution. "Error: Access of possibly undefined property through a reference with static type…
2
votes
2 answers

Flixel - Alpha not working properly

I have something odd happening when I update a FlxSprite's alpha repeatedly to make it fade out. Instead of taking 150 seconds to fade out completely (I actually want 15 seconds), it fades out over maybe 2 seconds. I tried tracing the actual alpha…
Mar
  • 7,765
  • 9
  • 48
  • 82
2
votes
1 answer

Overriding onTouchEvent with Flixel (Android port)

So I followed Mathew Casperson's Making Games on Android Tutorial and got a small game running a few days ago, now I am trying to switch the controls to touchscreen instead of the D-pad. I am running into some problems and was wondering if anyone…
user988620
  • 21
  • 1
2
votes
2 answers

Flixel files compiling in mxmlc but not running

SETUP: I'm brand new to Actionscript 3 and mxmlc, I'm running 64 bit Arch Linux with multilibs. Neither the Flex SDK nor flixel are provided nor supported by the Arch Linux distribution so I extracted them to ~/devtools/flexsdk and ~/devtools/flixel…
1
vote
2 answers

Flixel - FlxButton is acting as if clicked multiple times

I have a couple of dialog screens made from FlxGroups. The first screen, LandingScreen has a button that opens a second screen, CargoShop. Whenever a screen is added, it is made the active screen in my FlxState, and the other screens' buttons are…
Mar
  • 7,765
  • 9
  • 48
  • 82
1
vote
1 answer

Flixel - How do I make FlxGroups appear on just one FlxCamera?

I have a Flixel project with multiple FlxCamera's. One of them is the main play area, and another is the radar display within the HUD to the right of the main area. I want to add a layer (FlxGroup) to just the radar camera, and I also want to…
Mar
  • 7,765
  • 9
  • 48
  • 82
1
vote
4 answers

AS3 - How do I find where a line collides with a rectangular object?

I am developing a game with Flixel as a base, and part of what I need is a way to check for collisions along a line (a line from point A to point B, specifically). Best way to explain this is I have a laser beam shooting from one ship to another…
Mar
  • 7,765
  • 9
  • 48
  • 82
1
vote
1 answer

Can't get Flixel preloader working via flash IDE

I'm currently trying to work with flixel library via Flash IDE. Everything is okay except the preloader - it just doesn't work. I suppose the flash IDE does not support the directive [Frame(factoryClass="Preloader")], which flixel uses when being…
DataGreed
  • 13,245
  • 8
  • 45
  • 64
1
vote
1 answer

Make text stick to top of screen, even when moving camera

I am learning Haxe Flixel. I have a text that I want to stick to the top of the screen. I couldn't find anything in the API. How can I make a textObject stick even when camera centered around player is moving? Similarly. How can I set up lower…
1
vote
1 answer

Adding to a vector2 in C#? How so?

I'm doing a bit of trial and error with Flash/AS3 and Flixel to make a car move to various waypoints on its own. Anyway I have found some code by Microsoft for XNA/C# and am trying to convert it but am stuck on two bits to do with…
Chris Evans
  • 993
  • 2
  • 13
  • 30
1
vote
0 answers

AS3 Flixel - Building UI externally

I use a ton of XML in my game. This was partly influenced by my time spent modding an old PC game called Dungeon Siege, which used skrit files like external instructions for the game engine to parse. I have been able to get extremely basic UIs/…
1
vote
1 answer

How to port my Flash (Flixel with Flex actually) made game to Steam?

I've done my Googling and apparently there is only two ways, one is to use HaxeFlixel and another is Adobe AIR. I'm a bit on a tight schedule and can't test them both. What do you guys would recommend and why? Thanks.
idn
  • 29
  • 7
1
vote
2 answers

Make a FlxSprite behave as the child of another FlxSprite

In Flixel, you cannot add a FlxSprite to another one, like you could with Flash API (Sprites were subclasses of DisplayObject). So if you want 2 Sprites to behave like parent and child, you still have to animate them separately. This can become a…
yannicuLar
  • 3,083
  • 3
  • 32
  • 50
1
2 3 4 5