ActionScript: Good practices in Flash Development

Here some tips and a list of good practices in Flash Development.
These tips are usefull for coders and designers.

Prepare your layers

When you create a new .fla file prepare your layers like this :

Add a new layers “Actions” on the top of the list. This layer will be dedicated to ActionScript.
Then lock this layer to avoid adding  graphic elements here.

Lock the main script

In order to keep in sight your main script, I recommend to lock this script by clicking on the pin on the bottom of the Actions pannel like this :

Permit debugging

Enabled the Flash debugger to display more efficient error messages.

File> Publish settings… > Permit debugging

You can find this kind of message if you got an execution error : (My Flash player is in french language)

This error is located on the 1st frame on line 3. So useful !

However you must uncheck this option before publishing your swf on the web.

The library

Order you symbols and your medias in folders. Name your folders with explicit names.

Name your folders by using the prefix “_”.
This tip can keep all your folders in the top of the list.
And you can name a symbol or a media like your foler.

Example:  _Ball Folder own the Ball symbol.

The library orders elements and folders by alphabetical order.
Your library is now more lisible.

Name your symbols and your medias correctly

When you name your symbols or you media, particularly MovieClips, Istrongly recommand using a capital letter on the first character.

Why ?

When flash adds a new MovieClip with ActionScript he uses the class name exported for ActionScript.
By convention a class name has always a capital letter on the first character.

However the symbol name match with the class name when you link the symbol for ActionScript. So keep the same name.

Naming convention

ActionScript looks like Java so use the Java naming convention.

http://en.wikipedia.org/wiki/Naming_convention_(programming)#Language-specific_conventions

Rolling Jump – iOS highly addicting game

Hello, I’m proud to present you my last game on iOS: Rolling Jump. The Flash version was designed and developed in may 2009.

The new version is co-published by Chugulu.

You can download the free version here. The free version is limited by the score : 10 000 pts max. Or buy the full version here for $1.49.

Enjoy! And thanks to the Chugulu Team.

Description

Help Lighty save the light of the world by escaping from the dark evil creatures in this incredibly FUN and ADDICTING game! Simply jump from each wheel up into the sky and stars to protect the light of the world.

In Rolling Jump, your goal is to help the hero, Lighty, jump up into the sky and away from the dark evil creatures as fast as possible. Learn secrets of the game like double tapping, jumping onto walls, and discover how to attain the rainbow path to help Lighty save the light of the world, and ultimately prove his worth.

★ 7 levels to discover the stars
★ Increasing difficulty and real challenge for the hardcore gamers
★ Multiply your score x5 with perfect jumps
★ Use wall to bounce and reach upper wheels
★ Compete in a worldwide ranking via Game Center
★ Compare your score with your friends and challenge them !
★ Cute Retina graphics

Get free tips and be the first to hear updates about Rolling Jump on Facebook :
http://www.facebook.com/rollingjump

Nano War 2 finally playable

Finally the sequel of Nano War 1 released in november 2007.

I hope that new game will be a great success llike the first episode.

Every humans own billons of nanoscopic cells.
Some of these cells are doomed to protect our organism and fight foreign organisms.
Even confined to smaller and unlikely places the war is present.

Welcome on Nano War 2.

Play Nano War 2 on Kongregate.

What’s news ?

  • Solo mode
  • 25 levels: play against 1, 2 or 3 computers.
  • Upgrade your cells
  • 3 difficulty levels
  • Multiplayer: play against 1, 2 or 3 players.
  • Skirmish mode
  • 21 Achivements
  • The White blood cell: Increase your cells and capture opponent’s cells.
  • The Fat cell: Protect your cells or infect opponent’s cells
  • The Antibody cell: The most powerfull cell, increase your production or capture opponent’s cells and units instantly.

Have fun!

Garden Rush : Facebook time management game

If you like or if you don’t like vegetables, fruits, salads you can play Garden Rush on Facebook.
Garden Rush is a time management game but don’t worry it isn’t a percistant game like City Ville.
And if you like Alice Greenfingers you will also like Garden Rush.

The gameplay loop look like this one :

Plant > Arose > Weed > Seasonal illnesses > Prune > Collect > Sell

Play Garden Rush on Facebook

The game is actually fun and addictive and the graphics are pretty.  Nice work team!

The game was ordered by MesmoGames, the owner of Bouncing Balls or Gems II.
Exkee developed the game and I worked as an ActionScript coder and as a lead director for the first period.

Roll n Jump : iPhone free on the app store

Roll n Jump : iPhone is available on the app store for free since yesterday.
The Itunes link: http://itunes.apple.com/us/app/roll-n-jump/id428781116?mt=8&ls=1
This is my first game on iOS.
Please make a descent review a rate the game :).
I developed this version for testing the iOS Development.
This game was developed in Objective-C with cocos2d iPhone libraries.
Roll and Jump is a skill game where the goal is to climb as high as possible by jumping from a rolling circle to another.
If you liked doodle jump you will love Roll n Jump.
Tap to jump from a wall or a circle or do a double jump in the air.
Clim and do the highest score as possible.

Roll n Jump : android, on the market

You are welcome to download my game Roll n Jump for free from the Android Market:
https://market.android.com/details?id=air.com.benoitfreslon.rollnjump

Game Description

Roll n Jump is a skill game where the goal is to climb as high as possible.
Roll and Jump is a skill game where the goal is to climb as high as possible by jumping from a rolling circle to another.
Tap to jump from a wall or a circle or do a double jump in the air.
Clim and do the highest score as possible.

Screenshots

Poker Geeks Left Out in the Cold by Apple (but Loving Android)

Apple’s iPhone has been a huge success and its iPad tablet has gotten off to a hot start as well, but Apple’s strict policy towards gambling apps in the App Store have left a lot of poker geeks out in the cold. In many ways the iPhone and iPad are the poker players’ dream device, letting them enjoy all the action on the fly and cram in a few hands here and there when they have some spare time, whether at work, waiting for friends, or working on ActionScript projects like how to create a gravity like a Mario platformer.

The only hitch in those plans is while there are a ton of poker apps available for the iPhone and iPad, none of them let poker fans play on the two major online sites — Full Tilt and PokerStars. Apple has adopted a strict policy to the types of apps it approves for listing in the App Store and so far any app that can be used for real money wagering at a site that accepts US players has gotten the cold shoulder. Throw in Apple’s refusal to support Flash (which rules out the possibilities of players using any of the available Flash-based no-download poker rooms or casinos) and you’ve got a lot of frustrated poker players ready to chunk their iPhone out the window.

Frustration with Apple isn’t new for poker players, as it took years for all the major sites to provide Mac poker clients for players. While there’s no great solution to the current problem, it’s an area in which owners of Android devices are having the last laugh. With much looser restrictions on what can be distributed in the Android Market, many poker app developers are focusing on Android apps instead. Full Tilt has already made some of its real money games accessible through an Android app, with other online poker sites to follow shortly.

As was the case when developing poker sites for Mac clients, online operators have to balance a lot of factors when developing clients and apps, and potential market size is an important one. While some have held back on developing Android apps for poker and casino gaming, the rising popularity of Android devices is making it a market that can no longer be ignored, likely resulting in more and more poker apps coming to the Android Market soon.

Olivier MacLennan

ActionScript: Tutorial How to create a gravity like a Mario platformer

In this little tutorial you will learn how to create a gravity like a Mario platformer.

Let’s start!

Get files

  • Save these 2 sprites (Right click > Save as)

  • Open Flash and create a new ActionScript 3.0 document.
  • Document properties: 24 fps, 550×400 by default.

Create the Hero MovieClip

  • Create a new Symbol: Insert > New symbol > MovieClip
  • Symbol name: Hero
  • Check Export for ActionScript
  • And Click OK

  • Now you are in you Hero symbol! Perfect!
  • Import the first sprite: mario_stand.png on the first frame:
  • File > Import > Import to stage > mario_stand.png
  • Set the sprite just on the top of the little black cross (pivot point)
  • Now create an empty keyframe on the timeline:
  • Timeline > 2nd frame on the timeline > Right Click > Create empty Keyframe
  • Import the second sprite: mario_jump.jpg on the second keyframe
  • Then create a new layer on the top and set 2 labels names
  • Insert > Timeline > New layer
  • And add 2 labels names:
  • On the timeline click on the first key frame with the mario_stand.png sprite and go to the Properties pannel > Label > Name > stand
  • On the timeline click on the second key frame with the mario_jump.png sprite and go to the Properties pannel > Label > Name > jump

Add the jump script

  • Back to the main scene: Click on the Scene 1
  • Add a new layer named “Actions”: Insert > Timeline > New layer
  • And open the Actions pannel: Timeline > Actions Layer > Keyframe > Right click > Actions
  • Finally copy and paste this code:

Download sources: www.benoitfreslon.com_Create_gravity_like_a_mario_plateformer

Global Game Jam 2011 Paris: GameXtinction (made in 48h)

Global Game Jam 2011 at Isart Digital Paris FRANCE.

The official tweet feed of Global Game Jam Paris
The official facebook page  of Global Game Jam Paris

That was my first participation at Global Game Jam.

Great people, great team, great organization, great games, great experience.

We made a Flash based game in 48h with the theme Extinction : GameXtinction.
We reach one achievement: Break the 4th wall.

Description:

GameXtinction is an original and experimental game with non-conform features.
The main character is a BUG who like to eat game elements.
Every eaten objects create a new bug!
This greedy creature can travel from a game to another with his saucer.
Click to move the bug.

Credits:
  • Cesar Espejo Pham: 2D artist
  • Betrand Pujol: Sound artist
  • Tahir Vico: 2D artist
  • Audry Vasseaux: 2D artist
  • Benoit Freslon: Game Designer, Coder
Special thanks to Isart Digital and Olivier Lejade.