Adobe ActionScript is the open source multiparadigm language supporting object oriented, imperative, structural and functional programming and used within Adobe Flash Platform. ActionScript 3 is a dialect of ECMAScript, targeted for Adobe Flash Player 9 and higher.
4
votes
2answers
260 views
How to store the state of the world for a fixed time step?
Most of the posts on fixed time steps say something like this:
State previous;
State current;
while ( !quit )
{
double newTime = time();
double frameTime = newTime - currentTime;
if ( ...
1
vote
2answers
275 views
How would you recommend I get started with ActionScript 3?
I wanted to make Flash games so I bought the book "Flash Games Development with AS3." I did the 'hello, world' program by trace and addChild (or something like that). But the problem was, instead of ...
2
votes
1answer
361 views
Flash saves in Windows, not in Linux, FileReference.save()
The code below compiles fine on the Flex 4 SDK on Fedora 15. Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty. I run the same SWF file (that was compiled on ...
-1
votes
2answers
1k views
What technologies were used to create “Dueling Network”?
I want to make a similar browser online multiplayer game like "Dueling Network" (link below) but for a different TCG.
What technologies you believe they used to create it?
Could anyone kindly refer ...
1
vote
1answer
513 views
SWiSH alternative Flash animator for AS3
In the past I've used SWiSH to create small animations that I could use for Flash projects, however, I'm now trying to move to writing AS3 which SWiSH doesn't support.
Whilst I have access to Flash ...
6
votes
4answers
2k views
How can I render a circular progress bar procedurally?
I'm working in Flash AS3, but pseudo-code or any other language is fine.
How can I make a circular progress bar? Akin to the ship bars in Pax Britanica, you can see them in the screenshot here.
...
2
votes
1answer
89 views
How can I transmit move information from player to player in a web application?
I am trying to create an online chess game using ActionScript and Flex. It works well when I have two players on the same PC, but I want to publish it as a web app. How can I transmit a move or ...
5
votes
2answers
781 views
Best practices for UnitTesting heavy Flash game clients and libraries?
We have several quite heavy game clients completely written in AS3 (some also use Flex for UI). Some clients are built with PureMVC, others are a pile of spaghetti code that's grown over the years. We ...
3
votes
2answers
348 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 ...
8
votes
1answer
2k views
How to handle physics of moving platforms in a platformer?
So after a few hours of searching on the internet, I have yet to find a pleasing answer on how to handle moving platforms in a 2d platform game. So I decided to make a simple prototype where you ...
1
vote
1answer
429 views
How can I make an movieclip move in a circular path with GTween?
How can I make an movieclip move in a circular path with GTween? it's straightforward to have something move with various easing effects in a line or a curve, but I would need a complete circular ...
1
vote
1answer
298 views
Can flixel or a similar engine be used with reddwarf server?
I like the sgs/projectdarkstar or now known as reddwarf server for a back end game server. However I am looking for a good front end, preferably 2D. I was thinking of something such as flixel. I ...
3
votes
1answer
341 views
Let enemies blink when hit
I would like to know how can I go about with an approach, that lets the enemies blink after they are hit with a shot/particle?
Is it better to pre-render colored enemies into an array for a better ...
2
votes
1answer
296 views
Does PushButton Game Engine have the notion of a Camera?
I am playing around a bit with the PushButton Engine for game development in Flash and have come across a need for a Camera like the Camera that follows Mario in Mario Games. Flashpunk has a nice ...
5
votes
2answers
773 views
How do I get the distance between 2 points on an isometric grid?
How do I get the distance between 2 points on an isometric grid? I'm creating a facebook isometric game (in as3), and when I move around a particular type of building, I need to know if it comes ...
1
vote
1answer
565 views
Game State / Screen Management
What's the best way to handle game states / screens? My problem is this:
PlayGameScreen adds a new InventoryGameScreen to the game during it's update. This immediately adds InventoryGameScreen to ...
3
votes
1answer
229 views
Easy road from DisplayObject to Molehill?
I have a finished Flash game which is rendered using the built-in display tree, i.e. Bitmaps contained in Sprites (and a text here and there, few vector graphics, and one bitmap-filled shape).
For ...
0
votes
1answer
492 views
Animating Tile with Blitting taking up Memory
I am trying to animate a specific tile in my 2d Array, using blitting. The animation consists of three different 16x16 sprites in a tilesheet. Now that works perfect with the code below. BUT it's ...
5
votes
1answer
581 views
How to implement line of sight restriction in actionscript?
I have a problem with a game i am programming. I am making some sort of security game and i would like to have some visual line of sight. The problem is that i can't restrict my line of sight so my ...
9
votes
1answer
1k views
Angle of Reflection
I have this "Breakeout style" game.
I have a cannon at the center, blocks around the cannon and pads around the blocks. This is how the game looks like:
I've managed to get the collision per ...
2
votes
3answers
866 views
Flash AS3 Tower Defense Problem
I am working on a tower defense game in Flash. Right now most towers find the the nearest enemy in range (enemies are in an array), get the enemies coordinates, and fire a bullet. When it hits the ...
2
votes
2answers
423 views
TileBased Game: Blitting Hero or Sprite?
So my environment is all set up and now I'm working on the movement physics of my character. I used blitting to copy over my tiles from a tilesheet. But since they are static, they are only copied ...
1
vote
1answer
2k views
Collision Detection for sidescrolling Tile based Game
I've been working on a tile based game with a 2d array as fundamental ground for my tiles. Now my next step is to have the wall tiles be impenetrable, so that the player can walk ontop of them and ...
2
votes
4answers
812 views
Flash framerate reliability
I am working in Flash and a few things have been brought to my attention. Below is some code I have some questions on:
addEventListener(Event.ENTER_FRAME, function(e:Event):void
{
if (KEY_RIGHT)
...
4
votes
5answers
559 views
Flash Game not working on Android
I am not sure if I will be able to provide enough information for someone to answer this question, but any ideas might help.
I am creating a tower defense game in Flash and I eventually want to make ...
5
votes
2answers
934 views
Perfect fit for isometric tiles in AS3 with BitmapData
I'm creating a game which uses 320x160 sized isometric tiles. I've got an editor that allows me to take loaded in tiles and plot them. The map size is 8x8, and instead of placing down 64 movieclips, ...
3
votes
1answer
609 views
Flash AS3 Tower Defense MouseEvents
In my tower defense game and every tile has its own mouse event listener. I am wondering, would it be better to use one event listener (MouseEvent.CLICK) and then when it runs the function, should I ...
2
votes
2answers
384 views
Slow Tower for a Tower Defense Game
I am making a tower defense game in Flash and I have a slow tower that is built directly on the path. I have it setup to use a hitTestObject function.
The tower is in its own class and the enemies ...
2
votes
3answers
973 views
Flash High Scores
I have a Flash game running on a Google Sites web page right now. My main goal is to eventually convert it to an Android app. For testing and for my friends to play though, I want to store high scores ...
1
vote
2answers
605 views
Flash Custom Events
I am working on a Flash Tower Defense game. I have a main game loop which is an eventListener for each frame. Whenever you gain money or lose a life, I want the GameUI to be updated to display this ...
1
vote
1answer
148 views
Is there a memory read/write or performance difference when applying affine transformations on a movieclip rather basic elementary math
I am using Actionscript 3.0 to make games and I fall into the category of programmers who use ball.x+=5;
ball.y+=5;
in order to move a ball by 5 pixels horizontally and vertically.
Well, now i seem ...
1
vote
4answers
852 views
Client server design question
I'm working on creating a multiplayer game, with the client in ActionScript and the server written in Java. I'm using XMLSocket in the client to connect to the server. The server code looks something ...
2
votes
2answers
1k 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 ...
0
votes
3answers
484 views
Reproducing several sounds in AS3
I'm trying to reproduce several sounds in a game I'm developing in AS3.
The game is like a TD game, and when I got 10+ of the same tower firing at the same time, I hear a horrible: ...
1
vote
1answer
551 views
Pros and Cons of AMF in multiplayer flash game?
After trying to use red5 for my turn-based multiplayer game, I've decided to give AMF a try using amfphp, because of the expensive media server hosting solutions. (With AMF all I need is a web ...
9
votes
3answers
613 views
What pattern is this, and should I do it?
I'm making a game in as3 using flash develop and flash cs5. Everything is object oriented. I was wondering, should I have one "gateway" class that has a property-reference to all instantiations of ...
3
votes
3answers
661 views
Required Security Precautions for Flash / AS3 Multiplayer Game
I have created a couple of games in Flash/AS3 and am playing with programming a flash-based multiplayer (possibly mmo?) game where the application will communicate with a server over a socket ...
2
votes
2answers
262 views
Flash game size and distribution between asset types
I am currently developing a Flash game and am planning on a large amount of graphics and audio assets, which has led to some questions about Flash game size.
By looking at some of the popular games ...
3
votes
1answer
677 views
How to get local point inside a body where mouse click occurred in box2d?
I need to find out the point inside a body, lets say a rectangular object, where the mouse was clicked on. I'm makin a game where the force will be applied depending on where the mouse was clicked on ...
8
votes
3answers
1k views
Internationalization (i18n) in Flash games? Is there an easy way?
I want to internationalize some texts in a flash (not flex) game I'm working on and I can not find an easy way to achieve that... I have found some libraries and other solutions, but I expected ...
2
votes
3answers
400 views
Managing flash animations for a game
Ok, I've been writing C# for a while, but I'm new to ActionScript, so this is a question about best practices.
We're developing a simple match game, where the user selects tiles and tries to match ...
0
votes
2answers
665 views
Need help starting with a game in Flash/AS3
I am kinda new to flash/AS3. I have written some stuff and now I now the basics of AS. I want to develop a game in which my character moves. exactly like the way Super Mario moves(the background ...
2
votes
3answers
432 views
How much info can I store in a cookie?
Im developing a flash game and I'd like to know how much info can I store in a browser cookie.
The game is simple, but it needs to store several variables in order to save all the details of your ...
2
votes
5answers
7k views
which is the best physics engine for flash as3?
i am a game programmer and i use actionscript to do all my collision checking, boundary checking etc...but recently i noticed there are things called "physics engines" that help me concentrate more on ...
6
votes
5answers
1k views
Fastest bit-blit in C#?
I know there is Unity, and XNA that both use C#, but I am don't know what else I could use.
The reason I say C# is that the syntax and style is similar to AS3, which I am familiar with, and I want to ...
4
votes
2answers
514 views
Flash game engine
I need simple game engine with pixel-perfect collision detection, camera component with following function, network and particle components would be desirable. Anyone knows whether the engine right ...
1
vote
2answers
1k views
Looking for a good actionscript 3 book
I've been looking for a book on actionscript3 development, but while there's tons of books out there, nobody seems to want to recommend any specific one.
One book I've been pointed towards is the ...
5
votes
1answer
573 views
Algorithm to make groups of units
In Age of Mythology and some other strategy games, when you select multiple units and order them to move to some place, they make a "group" when they reach the desired location:
I have a Vector ...
2
votes
1answer
413 views
How can I find out what URL my game is executing from in Flash?
I want to upload my game to Kongregate and other sites, but on Kongregate I want to invoke one function and other sites I want run another function. How to check in AS3 where (I want to get host like: ...
1
vote
3answers
482 views
Is there an approach in creating an AI Framework?
I am creating a board game using Actionscript 3.0. I've finished it to the point of the game playable with (computer players making random decision). I'm now working to create an AI framework/module ( ...
