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.
61
votes
9answers
17k views
What are some programming design patterns that are useful in game development? [closed]
I have a few books on Design Patterns, and have read some articles, but cannot intuitively figure out which programming design patterns would be useful in game development.
For example, I have a book ...
20
votes
8answers
4k views
How can I develop Flash games without expensive software?
I've been playing with writing flash games in my spare time, but up to this point, I've just been using a trial version of Adobe Flash Professional. I'm aware of FlashDevelop, but their documentation ...
17
votes
7answers
5k views
Easiest, most fun way to program 2D games? Flash? XNA? Some other engine? [closed]
this is a post detailing my search for the most enjoyable way for a hobbyist game programmer to sweeten his free time with making a game.
My requirements:
I looked at Flash first, I made a couple of ...
11
votes
2answers
1k views
What libraries do you use for developing games in Actionscript?
There are a couple of libraries I have used myself when developing games in Actionscript:
Flixel: Created by Adam Atomic, well known as the library created for Cannabalt. Very special for pixel ...
11
votes
7answers
2k views
AS3/Flash Game Dev: Looking for good & current step by step
Flash tutorials and examples have been around so long it is hard to know what sites to actually read for good, current AS3 game dev.
I'm looking for a good start to finish for flash game development, ...
10
votes
6answers
1k views
How do I ensure an appropriate payout ratio for a slot machine?
I have done a lot of research into random number generators for slot machines, reel stop calculations and how to physically give the user a good chance on winning.
What I can't figure out is how to ...
10
votes
4answers
2k views
How to build a bones animation engine?
I want to develop a flash game. It would draw a stick man, and edit his pose.
I think what I need to learn are bones animation and physics engine.
Can anyone introduce some good resources to learn ...
9
votes
3answers
612 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 ...
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 ...
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 ...
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 ...
7
votes
5answers
338 views
How public should you make your betas?
I am approaching the point where I can release a playable beta of a very complex game I am making in Flash/AS3. It is fairly involved and the deepest game Ive made so far. I plan on hosting it on my ...
7
votes
3answers
3k views
What is a simple algorithm for calculating evenly distributed points on an ellipse?
I am looking for a simple algorithm to plot evenly distributed points on an ellipse, given the major and minor axes. This is really easy to do with a circle like so:
var numberOfPoints = 8;
var ...
7
votes
1answer
494 views
Efficient Sprite Batching
Am considering porting over from XNA to the Stage3D API's (Molehill).
So as a performance examination I've implemented sprite-batching, but the performance is not all that great, while with XNA i can ...
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.
...
6
votes
2answers
766 views
Why does my FPS drop gradually over time?
I'm working on this game: yt alpha preview
I came into a huge game-breaking problem - after 10-15 min of gameplay the FPS drops from 60 to 30 and is very unstable. I'm using tons of physics and ...
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 ...
6
votes
2answers
537 views
How could you create climbing movement in a 2D platformer?
Basically what I want to do is have a playable character that is able to "walk" on an organic surface at any angle, including sideways and upside-down. By "organic" I mean I want my levels to have ...
6
votes
4answers
327 views
What standards should designers/artists follow when giving UI assets to coders?
How do you or your company require designers to deliver their assets to coders? Do they deliver a PSD? A series of 24-bit PNGs?
If you are a coder, what would you include in a best-practice ...
6
votes
2answers
800 views
Is frustum culling necessary in a Flash/AS3 game?
I'm making a 2D game where the map will be scrolled frequently, and only a small part of it will be visible at any time.
Which implementation would run faster?
The naive way: Make the map a single
...
5
votes
2answers
769 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 ...
5
votes
6answers
4k views
Most efficient 3d depth sorting for isometric 3d in AS3?
I am not using the built in 3d MovieClips, and I am storing the 3d location my way.
I have read a few different articles on sorting depths, but most of them seem in efficient.
I had a really ...
5
votes
4answers
344 views
How would one generate a texture for cracks in different materials?
I would want to have the ability to simulate different variables like brittleness, or other variables to get varied end results.
I would mainly need to generate impact cracks, so it would need to ...
5
votes
3answers
607 views
Programming Languages Recommendations: A Space shooter game that allows two people to play [closed]
Do you remember an arcade game, that allowed two people to versus or play each other? It was a Galaga/Gradius type game.
Me and a couple of other people I know want to make a game like this. We want ...
5
votes
1answer
579 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 ...
5
votes
2answers
2k views
How to detect 2D line on line collision?
I'm a flash actionscript game developer who is a bit backward with mathematics, though I find physics both interesting and cool.
For reference this is a similar game to the one I'm making: Untangled ...
5
votes
2answers
780 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 ...
5
votes
2answers
217 views
How to “repeat” a sprite in the gameworld in a random fashion?
I have a platform flash game which includes a level with just two backgrounds which are flipped side by side so that a looping background effect is created. In this I have to include Obstacles. ...
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 ...
5
votes
3answers
4k views
Polygon/Shape definition changes in Box2D 2.1
I was going through a pretty good tutorial on Box2D here, but I ran into a problem when he made a b2PolygonDef, because the tutorials were made in 2.0, and I'm using 2.1. I could download 2.0 I guess, ...
5
votes
1answer
515 views
Help for choosing a cost effective game server for Flash client
I am developing a flash-based game primarily for desktops, to be hosted on facebook platform (like cityville, sims social etc). The gameplay doesn't involve real-time communication between players ...
5
votes
2answers
930 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, ...
5
votes
1answer
256 views
Handling Background & other objects in a Flash platformer
I asked a similar question in 'SO' not knowing about this place,anyways here goes:
I wanted to know what the best approaches are while creating a platformer based game for handling background & ...
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 ...
4
votes
4answers
617 views
Is ActionScript 3 used by Serious Indie Developers? [closed]
This question is for dedicated independent game developers:
My dream is to be a game developer. I am a senior in high school who has taken Computer Science for all four years. I have used Java the ...
4
votes
1answer
157 views
Orbiting multiple objects evenly around a changing radius
I have multiple objects (circles) and I want to place them in a circle, with even distance between each one, and have them orbit the center of the screen.
If I remove one object, I want the orbit ...
4
votes
3answers
765 views
Reusable skill class structure
Pretty new to the whole game development scene, but I have experience in other branches of programming. Anyway, I was wondering what methods are used to implement a skill structure. I imagine a skill ...
4
votes
3answers
539 views
What do I need to change in Box2D to work in pixels?
Box2D seems to be set up in such a way that you cannot work in pixels (i.e. physics scale = 1). It produces very strange results as it hits maximum speed limits at low speeds and looks very strange. ...
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 ( ...
4
votes
5answers
557 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 ...
4
votes
4answers
627 views
Level editor event system, how to translate event to game action
I've been busy trying to create a level editor for a tile based game i'm working on. It's all going pretty fine, the only thing i'm having trouble with is creating a simple event system.
Let's say ...
3
votes
9answers
846 views
How do I create a game that runs on Windows, iOS and Android?
I use C++ to create windows games and now I want to step into another other OS like Android or iOS. I'm totally familiar with C++ so I tried to create app for iOS using objective C it was working ...
3
votes
2answers
354 views
What is the best toolchain for ActionScript3 social networks game development?
I'm new to flash and web development too. But I have some background in c#/c++/Qt/python. So, I want to know, what is the best toolchain for quickest dive into.
My task is to write a game for ...
3
votes
2answers
979 views
Flash AS3 sidescrolling tiles optimization
I'm trying to make a sidescrolling game in Flash that will run on a low performance laptop.
While studying the subject from Tonypa I saw that he builds a Bitmap by making copys of the BitmapData of ...
3
votes
2answers
292 views
How to determine mouse position outside stage, and center the cursor?
I was wondering if it is possible to have my flash game determine the position of the mouse, even when the cursor is not inside the stage.
My movie clip should move horizontally between x = 100 and ...
3
votes
1answer
351 views
Tic-Tac-Toe game AI
I'm looking into creating a simple tic tac toe/noughts and crosses game in Actionscript3 and am trying to understand the ideas behind the AI used in a game like this.
I've seen some simplistic ...
3
votes
1answer
744 views
How many moves to think ahead for chess minimax AI?
I am thinking of making a chess game, and I read up on minimax trees. How many moves should the AI think ahead so that the player doesn't have to wait a long time?
If there are 25 possible moves ...
3
votes
2answers
347 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 ...
3
votes
3answers
660 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 ...
3
votes
3answers
2k views
Blitting in AS3 with anti-aliasing?
What would be the fastest method for doing anti-aliasing for a flash game that is drawn via blitting to a BitmapObject?
A method I thought of would be to make games stage smaller than the ...