Whirled game creation FAQ

How can I make money from my game?
Yay! We have a real currency system, that means you as a game developer can make money.


 * 1) Selling your launchers, game packs,  avatars, etc.  in your game shop. Whenever a player purchases one of your items, you get 30% of the purchase in coins.
 * 2) Affiliate Program.  Embed your Whirled game/room out on another site.  If a player creates a Whirled account via your embed, then anytime that player makes a purchase you get 30% of their purchase.

How big can my game be?
Whirled guarantees a 700 wide X 500 tall area for your game, starting with the upper left corner as (0,0). The game area could be bigger depending on how the player is viewing whirled (such as full height mode, or standalone client). If your game needs to dynamically change size based on the player's size, it can query the system for the size.

How can I make it so my game isn't positioned on with the 0,0 as the upper left.
You can create another sprite, and position your game within that. LOL captions (LOL.as) has an example of this.

How do I manage the stage quality since I can't access the stage?
You can use setStageQuality on the localSubControl (gameControl.local.setStageQuality)

How do I save data on the server?
You can persist data using the UserCookie Object.

How do I do sitelocking?
You can put a isConnected check on the game control object in your code.

How do I do get the numbers/IDs of players in a game?
GameControl.game.seating.getPlayerIds for seated games. For non-seated (party) games, you can use GameControl.game.getOccupantIds

How do I test my game?
You should start by testing your game on your local machine using the "ant test" command (or build.bat for Windows). Once that is working, you can upload your game to the Whirled. Once there, the game is NOT published. That game only exists in your games. If you'd like to play with other people, you can edit your room and add your game's launcher. Once it's in your room, anybody that visits your room and clicks on the game furniture will be able to play the game! If you only want to play test with your friends, lock the room to be friends only.

If you are testing a multiplayer game, make sure that your avatar stays in a private room as there will be an icon over the avatar saying 'join my game' and anyone can click on that.

How do I know when players/observers enter or leave the game?
GameControl.game.addEventListener(OccupantChangedEvent.OCCUPANT_LEFT, occupantChanged);

How do I turn on debug tracing for my code?
In your AS3/CS3 code put in the lines trace("blah blah my log blah blah blah");

Linux: create a file called ~/mm.cfg containing the line TraceOutputFileEnable=1 Your log will show up in ~/.macromedia/Flash_Player/Logs/flashlog.txt

Mac OS X: create a file called /Library/Application Support/Macromedia/mm.cfg containing the line TraceOutputFileEnable=1 Your log will show up in ~/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt

Windows: Create a file called C:\Documents and Settings\\mm.cfg containing: ErrorReportingEnable=1 TraceOutputFileEnable=1 TraceOutputFileName= Your log will show up in C:\Documents and Settings\username\Application Data\Macromedia\Flash Player\Logs\ for Windows XP; and C:\Users\user_name\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt for Windows Vista.

More information can be found on Adobe's site

How can I build my game outside of the Whirled game directory?
In the build.xml of the Whirled game directory, you can set the app.source-dir to point to your game. You can also define a namespace constant in the whirled-config.xml file to be checked for at a later point CONFIG::whirledApi true

How do I debug my AVRG?
You can use the AVRG probe.

This is all great, but it doesn't answer my question. What now?
You can try posting a question on the forums in and/or. When you post, be specific about your question and include any error messages you are trying to figure out. Barring that, you can also try to track down one of the helpful experts.