Questions tagged [flixel]

Flixel is a free game library for ActionScript, created by Adam Atomic. It has been used for many great games, such as Canabalt and Hello Worlds.

Filter by
Sorted by
Tagged with
1 vote
1 answer
189 views

How to create UI for 2D games? [closed]

I'm working on a game using Haxe + Flambe but I'm having a hard time making the UI part of it (main screen, level selection, etc). And I began to think... is there another way? I would love to have ...
Akima's user avatar
  • 127
1 vote
1 answer
106 views

Pathfinding onComplete event?

In HaxeFlixel 4 all FlxObjects have a path property which must be a FlxPath instance ...
Timo Huovinen's user avatar
0 votes
3 answers
1k views

In HaxeFlixel, how do I avoid hard-coding dialogue?

I'm planning to develop a visual novel in Haxe Flixel and wanted to know if there is a easier way to add dialogue than to hardcode them in every square. I don't know if I can import a txt file with ...
Javier Bullrich's user avatar
1 vote
1 answer
226 views

FLIXEL: hexagonal tiles not seamlessly tiling with each other

I'm making a hex grid for our project using as3. I wonder why my hex grid isn't tiling properly. Running my code within Flash CS6 produces seamless tiling but on FlashDevelop it looks like this ...
fierron's user avatar
  • 11
1 vote
3 answers
171 views

Flixel text causing memmory leak (FlxText) - AS3

I am calling kill() and destroy() on flxText when i dont need it anymore, how come its still using the memmory it let the game run for a while it went up to 1,5 gig of ram, then i commented it out the ...
Matthew's user avatar
  • 399
0 votes
3 answers
267 views

Creating 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 ...
Jamie Read's user avatar
-1 votes
2 answers
525 views

FlxG.overlap() won't work

I need a collision detection that has no physics and it's FlxG.overlap(), right? But why it doesn't work? FlxG.collide() works for me but.. how can I remove the physics when I hit the monster with a ...
teddyweedy's user avatar
1 vote
1 answer
342 views

How can I spawn a sprite based on a condition after the game starts?

How do I spawn a sprite anytime later in the game when the game starts? I'm using FlashDevelop with Flixel. I did try it in override public function create(): void....
teddyweedy's user avatar
0 votes
1 answer
928 views

Rotating an object about a point (2D) using box2d

i just started developing using box2d on flixel and i realise the pivot point of the rotation of an object in box2d is set to the center of an object. i had read on forums and i found out that ...
noob's user avatar
  • 1
2 votes
1 answer
383 views

My FlxGroup does not change it's visibility status

So, I found I needed a different type of button for my game, which I am making using Haxe, OpenFL and HaxeFlixel. After sometime fliding with Haxe, I got following button done, which works just fine. ...
Mandemon's user avatar
  • 123
-1 votes
1 answer
498 views

Flixel or Pygame for a small game? [closed]

I have some experience in Bash and Python, Lua. I've always wanted to try and make point & click quest games. Most quest games I loved aesthetically and gameplay wise were made with Flash. So ...
minerals's user avatar
  • 101
0 votes
1 answer
498 views

Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel

I have been working on a Flash game made in Flash Builder using the Flixel library. I have been trying to dynamically create a group of FlxSprites , and revolve them around a player controlled class ...
Christian's user avatar
  • 261
1 vote
1 answer
150 views

Flixel: Is it possible to use a spritesheet for FlxButtonPlus?

I'm trying to change the graphic on a FlxButtonPlus. I want to get the graphic from a spritesheet. However, if I try the ' regular' way (make an animation and play it), it refuses to use just the part ...
Tessa's user avatar
  • 111
1 vote
0 answers
307 views

How do I make a custom tileset for Flixel that supports autotiling?

I've been Googling this problem for a while now. I'm currently porting one of my Java games to Flixel, and I want to use the original 16x16 tileset I made. In the original game I implemented my own ...
Pitzik4's user avatar
  • 11
0 votes
2 answers
574 views

Using timer to reverse enemy movement in Flash game made with Flixel

I am creating a 2d flash game using Flixel 2.5 in Flash Builder. I am trying to reverse enemy movement on an interval so that they will move back and forth over a set space. I felt that a timer would ...
Christian's user avatar
  • 261
0 votes
2 answers
899 views

Use of FlxG.camera.follow to follow a character vertically

I am developing a prototype for a game in Flixel in which a character floats upward continually to traverse the level. I would like to have a "tall" layout for levels and set the FlxG.camera to follow ...
Christian's user avatar
  • 261
1 vote
1 answer
452 views

Hello World with FlashDevelop, Flixel, AS3: uneffective SWF macro

I just started with FlashDevelop and Flixel, and I already have a question. I created this basic hello world: ...
Rudey's user avatar
  • 453
2 votes
1 answer
364 views

Flixel Development in Ubuntu/Linux

I've been trying to setup a development environment for Flixel on Ubuntu using this guide http://forums.flixel.org/index.php?topic=4545.0 but thus far have been unsuccessful mainly due to the guide ...
Jacque006's user avatar
1 vote
2 answers
1k views

Use FlxAnim to Animate a FlxSprite in Flixel on FlashBuilder

I am trying to animate a FlxSprite, whose image I loaded from an embedded sprite sheet. I instantiate the sprite like this: ...
Christian's user avatar
  • 261
0 votes
1 answer
234 views

Use an external sprite or image file in flixel game in flashbuilder

Is there any way to use an external image/sprite file for the graphic of a FlxSprite instance? Say I declare my player FlxSprite as follows: ...
Christian's user avatar
  • 261
3 votes
1 answer
916 views

Change the tilemap shown on stage in Flixel

I am building a simple platformer using Flixel, beginning with the source code from Flixel creator's EZPlatformer . I would like to adjust the level's tilemap when the player sprite enters/overlaps ...
Christian's user avatar
  • 261
1 vote
1 answer
58 views

Flixel level ceases to show on screen

I was following along with the EZPlatformer flixel tutorial(with some of my own modifications), and suddenly find that my level is not appearing on screen. I am unable to detect any changes I could ...
Christian's user avatar
  • 261
2 votes
1 answer
3k views

Best way to generate pieces in match-3 games, and then tracking them?

I've been working on a match-3 style game in Actionscript using Flixel, and so far, I've been able to build the core mechanics of the game, including board generation, piece generation, piece swapping ...
JonLim's user avatar
  • 123
3 votes
1 answer
630 views

How do I animate a tilemap in Flixel?

I am trying to animate a tilemap using Flixel 2.55. I found this code that apparently enables the use of sprites as tiles. To my understanding, this loops over the tilemap's graphic and replaces the ...
nospoone's user avatar
1 vote
2 answers
661 views

Flixel: doesn't light tile up

i'm creating a game with flixel, and I want to have a effect when you mouse over a tile, I tried implementing it, and this is what it gives: ...
hasharc's user avatar
  • 63
1 vote
1 answer
822 views

Load individual sprite from a sprite sheet and make it a FlxSprite

I'm using flixel and flixer power tools which contains a FlxButtonPlus class that allows me to load 2 FlxSprite as each button state, the problem is that FlxSprite requires a Class a its source but I ...
Gustav Xyrer's user avatar
4 votes
1 answer
1k views

Pixel-perfect collision against rotated sprite in Flixel

I've got a roughly 500x50 graphic of a lockpick that I need to be able to rotate very finely while doing pixel-perfect collision detection against the lock object. There's no way to do pixel perfect ...
Jack's user avatar
  • 63
2 votes
2 answers
1k views

How to change particle graphics emitted by FlxEmitter?

I'm working with Flixel and attempting to emit "custom" FlxParticles from a FlxEmitter. However, my main issue is that I typically get the default Flixel image emitted instead of my custom graphic. ...
pikejd's user avatar
  • 123
1 vote
1 answer
929 views

Using Actionscript 3's Graphics API in Flixel

My question sounds pretty simple but awfully, I couldn't find much information on the internet. How can I draw a circle in my FlxSprite? I couldn't find much information about drawing geometric ...
frbry's user avatar
  • 173
3 votes
2 answers
611 views

Incorrect angle calculation?

I'm trying to create a simple topdown game, in which you control the player by WASD keys and use mouse to aim and shoot. So far, I have a player moving and firing, but I think there is something wrong ...
frbry's user avatar
  • 173
3 votes
2 answers
2k views

Rotate spritesheet graphics in flixel

I am using the flash flixel engine, and have a sprite sheet of a spaceship from top-down view. The sprite sheet includes a bunch of different states and animation frames. Problem is that I have drawn ...
Adam Harte's user avatar
  • 2,444
1 vote
1 answer
961 views

FlxSprite ignore camera follow in flixel

I am using flixel v2.5 and am using FlxG.camera.follow to get the camera to follow the player. I have a background FlxSprite ...
Adam Harte's user avatar
  • 2,444