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
1
vote
1 answer

How to add a UIView on top of an OpenGL game (iOS)

I have downloaded this source from here: https://github.com/ericjohnson/canabalt-ios It is the source code of the Canabalt game for iOS The game is built on the Flixel engine. I wanted to achieve a simple thing. I want to add a UIView to one of the…
wiseindy
  • 19,434
  • 5
  • 27
  • 38
1
vote
1 answer

Flixel error "FlxPreloader was not found."

When I run my Flixel code in Flash develop it throws this error: col: 33 Error: The definition of base class FlxPreloader was not found. my code: package { import org.flixel.FlxPreloader; public class Preloader extends FlxPreloader …
Dannyboy8899
  • 101
  • 2
  • 7
1
vote
2 answers

Why doesn't my custom FlxSprite appear on the stage?

I created a custom FlxSprite for a fireball by creating a new class(Fireball.as) and typing "extends FlxSprite" after the class name. In the constructor, it calls a function called "shoot()", which directs it to the target and plays a sound: private…
dizzydj7
  • 43
  • 4
1
vote
1 answer

Having some positioning trouble with springs in as3

For a while now I've been trying to hack Photonstorm's Power Tools 'Spring' plugin for Flixel. I've dabbled in a few formulas but I've not gotten what I've sort of wanted until now. I've managed to hack this into the…
xhunterko
  • 49
  • 7
1
vote
1 answer

AS3 Loader doesn't unload after game reset

you have always been of great help for me throughout the last few years. I could always find a solution to my programming problem. This time however I couldn't find a solution to this one. Although there are a few topics which discuss Loaders. Mine…
Matti Groot
  • 41
  • 10
1
vote
1 answer

Mouse pointer system default hand icon (Flixel game-making library)

How to change mouse pointer to system default hand/pointer icon hovering button, for example?
Sergey L
  • 547
  • 2
  • 5
  • 19
1
vote
2 answers

How to make Flixel ignore transparent images when overlapping?

I created a set of static objects using Photoshop, bunch of walls and gates, and I made the background transparent. The bunchOfWalls image has the same size as my map(600x600x). So, when i do FlxU.overlap(bunchOfWalls, myHero, heroHitWalls);, this…
Abdulaziz
  • 2,201
  • 1
  • 21
  • 35
1
vote
1 answer

Style sheet is not working as supposed to

I`m new to Flixel , so please forgive me if my question is too simple. My question is: i made four very simple images(stand, move, side stand, side move) using Photoshop then passed it to Texture Packer(A style sheet maker) it produced me an…
Abdulaziz
  • 2,201
  • 1
  • 21
  • 35
0
votes
2 answers

AS3 - Not sure what it's called

I'm writing a game that involves cargo, and I plan to have a large number of cargo types. Currently I have a Cargo class, and a ship carrying cargo has an array of the Cargos it is holding. I'd really rather not have each ship with a bunch of…
Mar
  • 7,765
  • 9
  • 48
  • 82
0
votes
1 answer

Trouble with FlashVars in AS3 + flixel

I'm building my first flixel app (a flash-based game engine) and I'm having trouble accessing the FlashVars from my html source. Flixel's root element is not derived from the top-level root, and I can't get a workaround in place. I've done some…
0
votes
1 answer

How do I get FlashDevelop to show the right api documentation?

I have been working with Flixel in FlashDevelop for quite some time, and I recently updated my Flixel library to the latest version. Some things have changed names or have been moved or had their inputs changed. For some reason, FlashDevelop is…
Mar
  • 7,765
  • 9
  • 48
  • 82
0
votes
1 answer

How do I solve this error: "source/MainMenuState.hx:25: characters 7-21 : Unexpected selectedOption"

I'm fairly new to HaxeFlixel and I wanted to see selectedOption change to see if there were any mistakes. But I was met with this error: This is the file that had the error (MainMenuState.hx): package; import flixel.FlxState; import…
0
votes
0 answers

SetLayeredWindowAttributes not working under certain conditions

I'm making this app in Haxe which compiles to C++ code. I'm using the SetLayeredWindowAttributes() function to set the background of the window to be fully transparent. The problem is that this works completely fine only on certain monitors, but not…
0
votes
0 answers

How do I iterate in a dynamic list?

I'm trying to iterate through a list of objects that I added to a list, but I'm getting an error. source/PlayState.hx:71: characters 16-21 : Unknown identifier : notes It says in VS Code that it's because I can't iterate through dynamic lists. Is…
wideey
  • 13
  • 3
0
votes
1 answer

How can I rezise an image in Haxeflixel?

I'm trying to set up a background in my game, and I want it to support multiple resolutions. I've tried using the scale trigger, but I'm pretty sure it multiplies the dimensions by the value. I need to resize the background by the resolution, so…
wideey
  • 13
  • 3