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.
1
vote
1answer
185 views
Why can't a blendShader sample anything but the current coordinate of the background image?
In Flash, you can set a DisplayObject's blendShader property to a pixel shader (flash.shaders.Shader class).
The mechanism is nice, because Flash automatically provides your Shader with two input ...
0
votes
2answers
250 views
Dropping multiple objects using an array in Actionscript?
I'm trying to get these fireBalls to drop more often, I'm not sure if I'm using Math.random correctly.
Also, for some reason I'm getting a null reference because I think the fireBalls array waits for ...
3
votes
0answers
219 views
Choosing a (browser) game environment [closed]
I apologise in advance if this post is something you've heard a million times already or seems like a trolling attempt. I just want some advice and I'm coming up short with my own Google searches.
...
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 ...
3
votes
0answers
541 views
Strange Flash AS3 xml Socket behavior
I have a problem which I can't understand.
To understand it I wrote a socket client on AS3 and a server on python/twisted, you can see the code of both applications below.
Let's launch two clients ...
-4
votes
1answer
297 views
Multidimensional Pathfinding Algorithms
When trying to program hostile AI units for a war strategy game using pathfinder methods, do programmers ever have one algorithm for the unit to move and a separate algorithm for the unit to actively ...
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 ...
0
votes
2answers
1k views
As3 Random movieclips from an array to the stage
For a game with orders and clients I was trying to create the following situation:
Every half minute, a client should appear at the counter. In this case I have an array with 4 movieclips (4 ...
2
votes
1answer
467 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 ...
0
votes
1answer
88 views
Setting up speedtests in Actionscript 3 for an entire game
I'm very new to this so please forgive the questions possibly ill-stated nature.
Firstly is this even a valid way to speedtest:
public function L1() {
tree.x = 200;
tree.y = 200;
...
3
votes
1answer
713 views
As3 Flash How to check if a bitmapdata is completely set to transparent using an eraser?
I'm trying to make a window-cleaning game with flash as3 on the timeline.
(Sounds boring I know, but I realy have some fun idea's with it)
So I have: A dirtywindow movieclip on the bottom layer
and ...
2
votes
3answers
422 views
Movie clip in a button changes on hover
I have a button for my game which has a MovieClip in it. It consists of an image of a lock and an image of an item, representing the item being locked and unlocked. I make the button become slightly ...
-2
votes
1answer
253 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.
...
2
votes
1answer
760 views
Rotating sprite to face cursor
Given the sprites X and Y values, and the mouses X and Y values, how can I make the sprite face the mouse cursor?
I tried doing this in my move method which I found in another SO question:
...
0
votes
1answer
803 views
How do I create a Dynamic Text Button AS3?
I am having difficulties creating a button that has Dynamic text in it for my interactive quiz game.
The text on the button has to change to show a selectable answer based off of what the current ...
-5
votes
3answers
226 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 ...
2
votes
2answers
666 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 ...
0
votes
1answer
1k views
Move an object by rotation AS3
I am currently trying to move an object (a square) around the stage in 2D space. Think Cuboid but in 2D platformer space, and vertical walls as well as the ground.
The idea is that during each ...
-2
votes
1answer
428 views
Using Vectors for 2d animation [closed]
I've decided that it's best to start using vectors in my games instead of the
xPos += xSpeed and yPos += ySpeed approach.
I'm posting some of the code from my basic model class which handles movement ...
2
votes
1answer
775 views
What resources are available for iPhone development using AS3?
I've just realeased my first game developed for the iPhone using AS3 and the iPhone Packager http://itunes.apple.com/us/app/snapshot-paintball/id407362440?mt=8&uo=4
I want to take the game to ...
0
votes
1answer
113 views
Game state from Web to iPhone version?
I'm currently in the planning stages for an Web and iPhone game. I'm developing it with Adobe AS3/Air. I was wondering if it's possible for people to be able to play the Web version, save their state ...
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 ...
-5
votes
4answers
1k 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.
3
votes
1answer
330 views
how to draw a dashed curved line to a point in as3?
How can I draw a dashed curved line to a x,y point in as3? Basically I'm creating a game where you have a turret, and I want the arc the turret would fire a projectile along to be displayed as a ...
7
votes
1answer
496 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 ...
18
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 ...
0
votes
2answers
2k views
AS3 Internal preloader (one swf) for flash game with Embeded() images?
So I am using the Flash IDE.
And I am trying to make a preloader on Frame 1 so that it displays and loads progress before anything else is exported/loaded. So all my assets from the Library are on ...
-3
votes
1answer
183 views
Flash multi-player system: one player moves the other stops when using the mouse
I started making a small multi-player avatar chat to start my self with flash and multi-player. Everything worked fine when I was using arrows to move but when I started using the mouse something goes ...
0
votes
0answers
711 views
Tutorial on creating simple fighting like Mortal Kombat in ActionScript 3.0 [closed]
I'm looking for a simple tutorial on creating a side-on fighting game like Mortal Kombat, but at its most simplest. So two fighters on a stage (one looking right and the other looking left) and the ...
2
votes
2answers
766 views
Make object follow mouse angle?
what I'm trying to do is make the paddle follow the mouse position(red dot).
I know how to rotate the paddle relatively to the center of the screen, but I'm not sure how to determinate the ...
0
votes
2answers
1k views
AS3 > Mouse Event not happening?
Background: Trying to make a ball appear in the same location the mouse is positioned. Using Box2D Library. Working on a class file (.as)
Issue: The mouse event does not work (I click but nothing ...
0
votes
1answer
361 views
How can I respond to mouse events in AS3?
Background:
Trying to make a simple "drop the ball" game.
The code is located inside the first frame of the timeline. Nothing more is on the stage.
Issue:
Using QuickBox2D I made a simple If ...
1
vote
1answer
434 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?
0
votes
1answer
364 views
AS3: StageWidth for BOX2D?
I know BOX2D uses meters, and AS3 uses pixels.
I'm trying to create objects which are limited to the stageWidth.
If I do this variable:
for (var i:int = 0; i<(stage.stageWidth); i++){...}
...
0
votes
1answer
352 views
AS3: limit objects to stage width?
I want to limit the creation of objects acording to the stage width.
My method is the following:
for (var i:int = 0; i<7; i++){
If I put something like this, it won't work
for (var i:int = ...
0
votes
1answer
424 views
AS3 Replay all the child timelines?
Flash CS5 AS3
Is there a way to reset all the timelines while/if the Frame 1 en Scene 1 is called?
I happen to have lots symbols with timelines, if I gotoAndPlay Scene 1 frame 1, most symbols won't ...
3
votes
2answers
244 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 ...
-7
votes
1answer
246 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
554 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 ...
2
votes
2answers
486 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 ...
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 ...
7
votes
3answers
4k 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 ...
3
votes
1answer
753 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
507 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
119 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 ...
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 ...
0
votes
2answers
622 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 ...
-5
votes
2answers
373 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 ...
-1
votes
2answers
342 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 ...
