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
0
votes
0 answers

Why does Graphics.drawRect draw two squares of the same color when I asked for different colors?

So I have an issue with Flash's Graphics class. Consider this code (I'm using Flixel): public static function CreateSolid(dimensions:FlxPoint, color:uint): FlxSprite { var sprite:FlxSprite = new FlxSprite(); …
kjin
  • 1
  • 1
0
votes
2 answers

AS3 clearing FlxText

I'm fairly new to AS3 and I am creating a text-based game and I am having difficulties clearing just the text from the screen. I am using FlxText and FlxButtons. When I use clear() it removes everything. Here is what it looks like(Sorry if this is…
Dustin
  • 11
  • 1
0
votes
1 answer

Flixel. How to make a simple popup window in game

Hi I was looking all around for how to make a simple popup window in flixel but could not find any tutorials/help on how to do it. If anyone could give a simple example of it that would be great! Thank you
James
  • 557
  • 1
  • 12
  • 29
0
votes
1 answer

ActionScript 3 - How to tell when the game is closing?

I am making my first game in ActionScript and I'd like to upload it to Kongregate. While implementing the Kongregate API (using FlxKongregate from the Flixel Power Tools), I'm trying to find the best place to call the function to disconnect from…
0
votes
1 answer

Switching FlxStates

I'm having an issue when I try to switch back to my PlayState after going into my menu state. When I click "go back" on my menu state, I get an error stating that "[Fault] exception, information=TypeError: Error #1009: Cannot access a property or…
ajax09
  • 63
  • 8
0
votes
1 answer

Collision in flixel not working with updated tilemap

I have been following the tutorial on jumper and I am now up to part 3. Here is the link for referencing: [url]http://chipacabra.blogspot.in/2010/12/project-jumper-part-3.html[/url] For part 2, I have successfully made my player collide with the…
Alex V
  • 1
  • 2
0
votes
1 answer

How do best to handle flixel android application switching?

I have a pretty extensive adventure game running on Android using flixel-gdx, and I would like to save the current game state when android switches to another application. I know you can override the onFocus() and onFocusLost() methods on the…
Anarchofascist
  • 474
  • 5
  • 15
0
votes
1 answer

Creating user UI using Flixel

I am new to game development but familiar with programming languages. I have started using Flixel and have a working Breakout game with score and lives. What I am trying to do is add a Start Screen before actually loading the game. I have a create…
AfromanJ
  • 3,922
  • 3
  • 17
  • 33
0
votes
1 answer

Flixel Game Over Screen

I am new to game development but familiar with programming languages. I have started using Flixel and have a working Breakout game with score and lives. I am just stuck on how I can create a new screen/game over screen if a player runs out of lives.…
AfromanJ
  • 3,922
  • 3
  • 17
  • 33
0
votes
2 answers

How to play wav-sound in Flixel?

I'm unable to play wav sound with Flixel library. By the way I'm using Flashdevelop. Error: 'pick.wav' does not have a recognized extension, and a mimeType was not provided [Embed(source = "pick.wav")] private var picksound:Class; Error: Unable…
marko
  • 10,684
  • 17
  • 71
  • 92
0
votes
2 answers

Change a public var at runtime in as3? (flixel)

I'm trying to create a guessing game that has the user clicking on different colored boxes to see which one is correct. I have a public var that dictates which color(later image) to use. The code is this in my update: if…
xhunterko
  • 49
  • 7
0
votes
1 answer

AS3 Object indexing causing Flixel misbehaviour--what's wrong with this code?

I'm getting my feet wet with AS3, Flixel and component/entity systems (yes, all at the same time), and my entities (which subclass FlxSprite) aren't being added correctly (i.e., not at all). I've just spent a good two hours nailing down the…
Cheezmeister
  • 4,895
  • 3
  • 31
  • 37
0
votes
2 answers

Checking for same values using if statement in actionscript?

I'm working on a match-3 style puzzle game using Flixel, and so I'm working on checking each row and column to see if there is a match at any given time. However, I have 6 different pieces (as of right now) that are active, and each piece is…
JonLim
  • 1,393
  • 2
  • 14
  • 23
0
votes
1 answer

Error using Flixel and photonstorm - I'm using Flash Professional not Flash Builder or similar

I downloaded flixel and photonstorm in order to their perfect collision stuff (FlxCollision); in my root folder I have the flixel org folder and inside org/plugin I extracted photostorm as instructed at their site; I'm importing it here: import…
i'llbdevsomeday
  • 151
  • 1
  • 4
  • 11
0
votes
2 answers

How do I get this to work with a class instead of an embedded image?

I'm trying to create a game in which after you click on an object, the object glows. When I embed an image and pass it through a bitmap, it works fine, like this: package { import org.flixel.*; public class HelloWorld extends…
xhunterko
  • 49
  • 7