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.

learn more… | top users | synonyms (1)

77
votes
9answers
29k 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 ...
23
votes
8answers
9k 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 ...
19
votes
7answers
6k 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 ...
12
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 ...
12
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
3k 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 ...
10
votes
1answer
3k 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 ...
9
votes
2answers
1k views

How can I make a character walk on uneven walls in a 2D platformer?

I want to have a playable character who can "walk" on an organic surface at any angle, including sideways and upside-down. By "organic" levels with slanted and curved features instead of straight ...
9
votes
3answers
663 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 ...
8
votes
1answer
4k 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
2k 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
365 views

How public should you make your betas? [closed]

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
6k 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
614 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
3k 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
930 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
6answers
6k 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 ...
6
votes
2answers
5k 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 ...
6
votes
5answers
1k views

Fastest bit-blit in C#? [closed]

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
4answers
372 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
934 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 ...
6
votes
3answers
5k 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
9answers
2k 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 ...
5
votes
2answers
1k 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
4answers
355 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
4answers
3k 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 ...
5
votes
3answers
680 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
868 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
1k 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
252 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
945 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
2answers
1k 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
607 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
1answer
278 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
569 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
1answer
541 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
1k 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
2answers
229 views

How can I disable the forward/back buttons in AS3?

How can I disable the Flash player forward and back button in AS3? These buttons make it possible to cheat in my game by moving from level to level.
4
votes
3answers
652 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
1answer
671 views

How to add a movieclip to the stage then make it move down?

I am making a game where i want to spawn zombies then make them move down the screen. I also want to have multiple on the screen at once. I have tried multiple ways now but none of them have worked. ...
4
votes
3answers
210 views

Is there a way to squash/stretch a sprite based on an angle?

I have a ball that can move along any angle, and I want to squash and stretch it based on this angle. To be clear, if you dropped the ball down at a -90 angle, the squash would be all along the y, and ...
4
votes
2answers
275 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
614 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
751 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
2answers
381 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
1k 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
1answer
624 views

Parallax Scrolling - Layers not preserving their relational positions

I've created a little 2D game engine with parallax scrolling and something has been bugging me for some time. Layers / objects set at a different depths / z orders don't preserve their position ...
3
votes
2answers
1k 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
502 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 ...