Adobe ActionScript is the open source object orientated programming language of the Adobe Flash Platform. ActionScript 3 is a dialect of ECMAScript, targeted for Adobe Flash Player 9 and higher.
0
votes
0answers
7 views
Type Error for hit testing two objects created with actionscript
I am making a zombie shooter game where I get an error when I try to hit test two objects created with actionscript. Could someone post a possible fix please.
Here is the Error Code;
TypeError: ...
0
votes
1answer
29 views
Industry standard to output multiple sized sprite sheets?
I have to take out three different sized sprite sheets for that I have three different fla files. Obviously mantaining 3 files takes more time than one. I was wondering is there an industry standard ...
0
votes
1answer
62 views
Making the player walk on walls in box2d
I'm making a game in stencil where players walk form left to right along randomly generated walls. I cant use waypoints, since the walls' shapes and positions are unpredictable.
Here's a descriptive ...
-1
votes
1answer
87 views
Help with tile-based collision
I've been working on a 2D platformer using Flash. I've managed to get the collision detection working, but its not exactly perfect. Below is the code I'm using
//Get the speed of the player
...
-1
votes
0answers
36 views
How to use properties of an object created in a function with the addChild command [closed]
I have a game in which I want the zombies zombie to count how many times they get shot with the bullet b, then to make the bullet disappear and the zombie which was hit add one to a counter. However, ...
0
votes
1answer
41 views
How to use an object created in a function in other functions?
I am making a game where i want to be able to shoot zombies to make their health go down, but i get a null property error on objb.
i have declared abjb and objz as Object variables
Here is my code ...
0
votes
0answers
16 views
Are Flash AMF calls blocking on AS3 client side?
Are Flash AMF calls blocking on AS3 client side i.e. Do they block the client till the response is returned from the server side? What is the underlying transport protocol used for AMF, If it is HTTP ...
3
votes
1answer
27 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.
...
0
votes
2answers
47 views
Changing colour while keeping gradient
I'm making a Flash game with ActionScript 3 and I have a square with a gradient applied to it. I am trying to programmatically changing the colour of the square depending on time, for example, some ...
0
votes
0answers
32 views
Make colour change depending on time
I'm making a Flash game (ActionScript 3) and for dynamics I'd like to make the background change colour depending on the clients' time of day.
I have a rough idea on how I want to do this,
At ...
1
vote
2answers
139 views
Packet handling system architecture?
I'm working on a multiplayer Flash game (ActionScript 3) with an accompanying server written in Python and I'd like some tips regarding networking, and specifically, the handling of packets and ...
0
votes
1answer
85 views
Bullet Manager Class
I'm making a game in AS3, and it's a rather simple shooting game because I'm original. Anyway, probably the most subjective question here yet: what is the best way to implement bullets in my game?
...
-2
votes
0answers
43 views
Open user's mail application [closed]
I'm creating an air for ios application and I'd like to know how to open the user's mail application, have the user press 'send' or 'cancel', and return back to the app.
This is flash professional, ...
0
votes
1answer
26 views
How do I get the child of a unique parent in ActionScript?
My question is about targeting a child with a unique parent. For example. Let's say I have a box people can move called box_mc and 3 platforms it can jump on called:
Platform_1
Platform_2
Platform_3
...
0
votes
1answer
36 views
Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel
I have been working on a Flash game made in Flash Builder using the Flixel library. I have been trying to dynamically create a group of FlxSprites , and revolve them around a player controlled class ...
1
vote
1answer
30 views
Flixel: Is it possible to use a spritesheet for FlxButtonPlus?
I'm trying to change the graphic on a FlxButtonPlus. I want to get the graphic from a spritesheet. However, if I try the ' regular' way (make an animation and play it), it refuses to use just the part ...
0
votes
1answer
37 views
How to check the device type using Adobe AIR for iOS
How do I check what kind of device the user is running my Adobe AIR app on?
Example: if(device == ipad3) { stagestuff.width = 300; }
2
votes
3answers
95 views
Swap Child and Child's Child
Is it possible to use swapChildren() with a child and a child's child? Every time I try, I get this error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
Why ...
-1
votes
0answers
41 views
Blue Karma adventure game class diagrams [closed]
Hello I am building all the artwork for a potential game and I would like to see some examples of point and click class diagrams to give me an idea of what I could also include. Does anyone know of ...
0
votes
2answers
75 views
Using timer to reverse enemy movement in Flash game made with Flixel
I am creating a 2d flash game using Flixel 2.5 in Flash Builder. I am trying to reverse enemy movement on an interval so that they will move back and forth over a set space. I felt that a timer would ...
0
votes
1answer
76 views
Flash game made with Flixel does not appear when using regular zoom [closed]
I am having an issue getting my Flash game (made using the Flixel library) to display when I use Zoom = 1 in the call to Super() in the game's constructor.
I have made a map using Dame which is ...
0
votes
0answers
17 views
Virtual Camera preventing correct use of Touch Events
http://www.youtube.com/embed/jkk0k6HvDa4
How come when I try to use e.stageX and e.stageY the virtual camera messes the coordinates up? (watch video)
1
vote
3answers
338 views
Smart terrain generation to avoid unconnected tiles
To make this clear from the get go;
I'm not looking for HOW To randomly generate a terrain (I know I can use Perlins noise for that).
I'm looking for an algorithm that can help with the terrain ...
0
votes
1answer
58 views
AS3 Rect-Rect Collision
Basically, my game has the player's attack hitbox change based on the attack being performed. I tried to make a simple collision test that takes an enemy's coordinates and have it check to see if it's ...
0
votes
0answers
48 views
What are the best practices for Flash / Server communication? [closed]
Most social games (web) these days are in Flash with a lot of server intensive processes. What are the best practices to talk to the server end using flash in the context of social games?
0
votes
1answer
71 views
Use of FlxG.camera.follow to follow a character vertically
I am developing a prototype for a game in Flixel in which a character floats upward continually to traverse the level. I would like to have a "tall" layout for levels and set the FlxG.camera to follow ...
3
votes
3answers
57 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 ...
0
votes
1answer
44 views
Coordinates user taps
I am using e.stageX and e.stageY to locate the user tap, only I have a vcam that constantly changes the view, until eventually off the stage. Is there another way to do this? Like e.SomeMovieclip.x ...
0
votes
0answers
103 views
Smudge and Erase Image using Flash and AS3
I am developing an app where in I have to smudge and erase a portion of the image which is loaded on stage.
The logic I am using is adding two Images on stage one above the other.
I am able to ...
-5
votes
2answers
101 views
X and Y values same as width and height? [closed]
I'm trying to make an expandable box in flash. The registration of down and up is to the left. the registration of left is in the middle. This is the code:
down.width -= 10; up.width -= 10; left.x ...
0
votes
1answer
122 views
Hello World with FlashDevelop, Flixel, AS3: uneffective SWF macro
I just started with FlashDevelop and Flixel, and I already have a question. I created this basic hello world:
package
{
import org.flixel.*;
[SWF(width = "640", height = "480", ...
0
votes
1answer
70 views
Increasing height increases width
I have a game, where the user presses a button to spend money and increase the height of a Movie Clip. I use the following: height ++.
The problem: When I test this out, it seems the width ...
3
votes
2answers
152 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 ...
1
vote
2answers
73 views
ScaleX and Y for stretching MovieClip
I'm developing a game, and the game has a shop. In that shop there is an option for a house expansion. This is a movieclip that I want the user to be able to spend their coins to increase their ...
-4
votes
1answer
67 views
Error 2007 after gotoAndStop [closed]
My most unfavorite errors, error 2007 and error 1009.
TypeError: Error #2007: Parameter hitTestObject must be non-null.
at flash.display::DisplayObject/_hitTest()
at ...
0
votes
0answers
105 views
An “AABB Physics Engine” [closed]
I've been working on the physics for my 2D game and for the past two weeks it's been doing my head in. I wanted something a little more complicated than what you see in 2D platformers, but I wanted to ...
3
votes
2answers
108 views
Walk to nearest attackable range node
My game has 3D environment which is partitioned in 2d cells(nodes). I have implemented A* for path finding.
Now I am just breaking my head to how to implement the algorithm to move the hero to the ...
-4
votes
1answer
117 views
AS3 UML Tools other than Crocus Modeller [closed]
I have been using Crocus Modeller a lot this past year, and it's been great. It's the first UML tool I've used, and so I don't know how it compares, but it seems to work very well. However, today I ...
-4
votes
1answer
80 views
Importing a transparent image to flash [closed]
How do I import an image that has transparent background to flash and give it class and use addChild to show it on the screen? Transparent background should stay transparent.
1
vote
2answers
150 views
Moving player in Box2d without forces
How do I move player with keyboard without applying forces? If I do playerBody.setLinearVelocity(new B2Vec2(0, 2)) it moves the player but when I release the key for movement, the ball is continuously ...
5
votes
2answers
367 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 ...
4
votes
1answer
121 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 ...
1
vote
1answer
121 views
Use FlxAnim to Animate a FlxSprite in Flixel on FlashBuilder
I am trying to animate a FlxSprite, whose image I loaded from an embedded sprite sheet. I instantiate the sprite like this:
// embedding a png file given a relative path
...
0
votes
1answer
54 views
Use an external sprite or image file in flixel game in flashbuilder
Is there any way to use an external image/sprite file for the graphic of a FlxSprite instance?
Say I declare my player FlxSprite as follows:
player = new FlxSprite(FlxG.width/2 - 5);
...
3
votes
1answer
173 views
Change the tilemap shown on stage in Flixel
I am building a simple platformer using Flixel, beginning with the source code from Flixel creator's EZPlatformer . I would like to adjust the level's tilemap when the player sprite enters/overlaps ...
1
vote
1answer
35 views
Flixel level ceases to show on screen
I was following along with the EZPlatformer flixel tutorial(with some of my own modifications), and suddenly find that my level is not appearing on screen. I am unable to detect any changes I could ...
0
votes
0answers
209 views
Socket.io v.9 with Actionscript
I'm attempting to develop an online multiplayer game using Node.js for the server and Flash to display the client.
I've been reading up a bit and have found quite a few recommendations for the ...
3
votes
1answer
444 views
Best practice for organizing/storing character/monster data in an RPG?
Synopsis: Attempting to build a cross-platform RPG app in Adobe Flash Builder and am trying to figure out the best class hierarchy and the best way to store the static data used to build each of the ...
1
vote
4answers
554 views
Tile-based maps in AS3
I want to make a tile-based platformer in AS3.
I want my game to read an external maps file (in xml or json or somethimg similar) to draw a tile-based map.
I've seen loads of tutorials for this in ...
2
votes
2answers
162 views
Zelda like multiplayer combat
I have in mind coding a multiplayer game with a similar combat to zelda's. Since i will use flash, i'm limited to use TCP. My question is, is this goal possible? It's not as fast-paced as some ...