Tagged Questions

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)

3
votes
2answers
312 views

How to make it so units don't stack up in one location? [duplicate]

Possible Duplicate: Is there a simple way to stop enemies standing in the same spot? So I'm making a game in AS3, it's a strategy DotA-like game (for flash game equivalent, there's UDE) so ...
-4
votes
4answers
2k views

Is it possible to make an MMO game with Flash and ActionScript?

Is it possible to make an MMO game in Flash CS5 with ActionScript 3.0? I'm not asking how, but I'd also like to see some examples if it's already been done.
-7
votes
1answer
400 views

How do I declare the variable “i” and “remove” in actionscript3? [closed]

public function remove(u:Unit) { for (var i = 0; i < size; ++i) } The errors are: 1008: variable 'i' has no type declaration 1008: return value for function 'remove' has no type declaration ...
1
vote
1answer
798 views

Flash Actionscript 3.0 Game Projectile Creation

I have been creating a side-scrolling Actionscript 3.0 game. In this game I want the Player to be able to shoot blow darts as weapons. I had some trouble getting the darts to be created in the right ...
-5
votes
3answers
429 views

How can I randomly generate a unit instance based on a probability?

I want AirUnit to return a value between 1 and 3. I want LandUnit to return a value between 4 and 6. I want WaterUnit to return a value between 7 and 9. The Array is suposed to be inside this ...
7
votes
1answer
626 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 ...
2
votes
2answers
629 views

Actionscript 3.0 - Enemies do not move right in my platformer game

I am making a side-scrolling platformer game in Flash (Actionscript 3.0). I have made lots of progress lately, but I have come across a new problem. I will give some background first. My game level's ...
1
vote
1answer
664 views

Is there a 2D soft-body physics engine for Flash?

I'd like to write a small physics game by using ActionScript, but do not want to write my own physics engine. Does anyone know a ready-to-use 2D soft-body physics engine with a Flash port?
3
votes
1answer
2k 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 ...
1
vote
2answers
785 views

How should I manage game levels in a flash games?

I am still learning and I am trying to design the game levels for my first game (a platformer). I have some straightforward questions because I feel I am on the wrong way. Should each level have its ...
2
votes
3answers
2k views

Can one develop an application with Bluetooth support on iOS using Flash Builder 4.5?

I have heard about Flash Builder 4.5.1. As I have understood, one can make an application using Flex with Flash Builder 4.5.1 and also export the release build for iOS, Android and Blackberry. Is it ...
0
votes
1answer
145 views

Vector class throwing an error after publishing the FLA for generating .ipa from flash CS5

I am creating a flash game for iPhone using Flash CS5. Everything runs smoothly when creating the SWF via Ctrl+Enter. But when I am attaching the .p12 and provisioning profile files and publish the ...
0
votes
2answers
958 views

How to start publishing Flash games

I'm already pretty adept at AS3 and all, and I have plenty of ideas for Flash games that I want to start making. However, I was wondering, when I've made my first one, how should I publish it, and how ...
6
votes
4answers
375 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 ...
2
votes
1answer
456 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 ...
0
votes
2answers
2k views

What technologies were used to create “Dueling Network”? [closed]

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 ...
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. ...
2
votes
1answer
91 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 ...
1
vote
1answer
834 views

Using Actionscript 3's Graphics API in Flixel

My question sounds pretty simple but awfully, I couldn't find much information on the internet. How can I draw a circle in my FlxSprite? I couldn't find much information about drawing geometric ...
3
votes
2answers
534 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
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 ...
-1
votes
2answers
383 views

I need a book to continue experimenting with ActionScript 3

I am a CS student who finished his third year in school, and I'm interested in game development. This summer, I bought a book named "Foundation Game Design with Flash" by Rex Van Der Spuy. I'm halfway ...
1
vote
2answers
329 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 ...
1
vote
1answer
651 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 ...
-5
votes
2answers
459 views

Is it possible to integrate Action Script 3.0 with Java Script and PHP for an online browser game?

My client wants a browser based online game, languages which are known to me are Java Script PHP and Action Script and also My Sql. Game is quite like Farmvile as far as functionality is concerned.I ...
3
votes
1answer
458 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 ...
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 ...
4
votes
2answers
276 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
1answer
336 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 ...
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 ...
1
vote
1answer
687 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
233 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 ...
-2
votes
1answer
274 views

Flex 4 + Apache Ant, Cannot Load FlashPunk Libraries

I have been searching google, Apache Docs*, and FlashPunk forums looking for an answer to this: I cannot get Ant/Flex to find and compile the FlashPunk libraries. Here is my build.xml. ...
0
votes
1answer
622 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
893 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 ...
2
votes
2answers
826 views

Game Server Framework / Engine that supports AMF? [closed]

I am looking for a server technology that supports AMF (because I plan on using an as3/flash front end). I would like to develop game logic / simulations that run on the server. Small number of ...
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 ...
2
votes
2answers
446 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
3k 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 ...
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, ...
4
votes
5answers
617 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 ...
3
votes
1answer
736 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 ...
3
votes
2answers
466 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
1k views

Actionscript 3: Which side of object is hit?

I have a two objects colliding with each other. I am testing for the collision with if(ob1.hitTestObject(ob2)){//do something }. Is there a way to determine which side of the object was hit, i.e. if ...
1
vote
1answer
168 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 ...
2
votes
3answers
2k 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
813 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 ...
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 ...
1
vote
4answers
1k 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
3answers
987 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 ...