LK4O4 blog header photo
LK4O4's c-blog

"Truth... is the equivalent of love."

Posts 0Blogs 38Following 0Followers 19



Flixel, Day 1

Posted by: Ryan

I came across an ActionScript 3 game library called Flixel, which is pretty simple, but it's also pretty damned cool in my opinion. For those who don't know, ActionScript is the programming language that Flash uses, and there's something about coding files, compiling them, and getting back .swf files that just feels really cool. So I've set it all up on my home computer and my work computer, and I've been messing with it to try and make a small 2D Flash game.

Flixel, Day 1
Today's Work Time: Less than 3 hours

My code actually compiles now. I've gotten text to appear on the screen, and I also have an animating sprite on the screen. The sprite I used was the same one from the demo game that comes with flixel, which is called Mode. As of now, the sprite has no physics, but it can be moved up/down/left/right, it does have a slight acceleration curve to it's movement, and it animates correctly for each case. It's kind of like the sprite is floating around in space. Especially since there's nothing but a black background behind him.

Part of the way through, I Google-searched for some premade sprites, and I tried out a Sonic the Hedgehog sprite, but it looked kind of weird, just due to the way I put it together. I only had a four-framed running animation, and when he turned around, there was no real transition. The running animation just flipped. So the Sonic bit turned out pretty bad the first time, but I'm sure I'll come back around to ripping sprites once I get the hang of using them correctly.

Flixel, Day 2 (Today)
Today's Work Time: Less than 2 hours

I've been messing with this project at work. Not good. I should be working. I'll go back to work after I post this entry. :D

I stole a background from some random Mega Man game, so that way, it wouldn't just be a plain black background, and I would have something that clearly looked like a floor. I've switched back to using the sprite from Mode, and I decided to make him move much faster, and jump much higher... well, because it's more fun to test with. I added in some really hacky code to make sure that the player doesn't fall through the floor, or walk past the sides of the screen. Believe me, that code will be replaced later on. But right now, I think I have something that I can actually show you guys!

Sorry, the old version's been removed!

Check out the latest version at:

Yeah, just check out the new one. Having too many Flash things on one page just makes them all run slower.
Login to vote this up!



Please login (or) make a quick account (free)
to view and post comments.

 Login with Twitter

 Login with Dtoid

Three day old threads are only visible to verified humans - this helps our small community management team stay on top of spam

Sorry for the extra step!


About LK4O4one of us since 1:47 PM on 05.07.2009

Hello there.

My name is Ryan and I work at a pretty prominent web company. I'm 24 years old, which makes me one of the youngest people at the company (out of over 100 people). I have half of a college degree, a full-time job, and now I've got a place to hang out and talk about awesome video games.

Feel free to talk to me! <3

== Currently Playing ==
FTL: Faster Than Light
Slitherlink by Nikoli

== Recently Finished ==
Thomas Was Alone
Fire Emblem: Awakening
FTL: Faster Than Light (Easy)
Hotline Miami
Little Inferno
Analogue: A Hate Story
Mark of the Ninja
Atom Zombie Smasher
Time Fcuk
Thirty Flights of Loving
Lone Survivor
Might & Magic: Clash of Heroes
Dynamite Jack
Slitherlink by Nikoli
The Legend of Zelda: Skyward Sword
Ghost Trick
Mighty Switch Force
The Legend of Zelda: Four Swords AE
Shin Megami Tensei: Devil Survivor Overclocked
Mighty Flip Champs
Donkey Kong (Game Boy version)
Escapee GO!
Aura-Aura Climber
Resident Evil: The Mercenaries 3D
Shantae: Risky's Revenge
Dragon Quest Heroes: Rocket Slime
Elite Beat Agents (Normal Difficulty)
Paper Mario
Sonic Colors (Wii version)
Dragon Quest V: Hand of the Heavenly Bride
Mother 3 (Fan Translation)
Muramasa: The Demon Blade (Both Second Endings)
Portal (Steam version)
Cave Story (Wii version)
Spartan: Total Warrior (GameCube version)
LostWinds: Winter of the Melodias
Half-Life 2 (original Xbox version)
The Lost Vikings (Genesis version)
Pokemon HeartGold Version
Bangai-O Spirits (All 160+ Levels Cleared!)
Super Mario 64 DS
The Great Circus Mystery Starring Mickey & Minnie
The World Ends With You
Ninja Gaiden Black (Normal Difficulty)
Chrono Trigger

== Systems I Own and Love ==
Sega Genesis
Sega Dreamcast
Game Boy Advance
Nintendo DS Lite
Nintendo 3DS

== 3DS Friend Code ==
5241 1905 5146

== Wii System Code ==
4688 2108 9135 7828

== Tatsunoko vs Capcom ==
4297 4386 7686

== Monster Hunter Tri ==
Mii code:4688 2108 9135 7828
3DS Code:5241 1905 5146


Around the Community