Tagged Questions
0
votes
1answer
54 views
How to stretch Movie Clip according to user's touch coordinates?
I have code like this:
touchX = stage.stageX;
touchY = stage.stageY;
I also have a player movieclip that I'm trying to make shoot lasers. So I got the MovieClip to appear and rotate according to ...
-1
votes
1answer
59 views
What is faster, TimerEvent.TIMER or if(timer.running)?
In my game, I'm trying to prevent lag. I have timers for pushback. I'm using if(pushtimer.running), but is it faster to do pushtimer.addEventListener(TimerEvent.TIMER)?
Basically, should I add a ...
-4
votes
2answers
50 views
addChild with same MovieClip after RemoveChild
I have quite a bit of code like this:
var mov = new movclass;
if(somethinghappens){
addChild(mov);
}
inside the movclass class:
//im not going to put code right now, so just imagine a thirty ...
-6
votes
2answers
118 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
107 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 ...
-4
votes
1answer
77 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 ...
2
votes
1answer
98 views
Can't click on a button with startDrag() active on stage
I need to know how can I enable mouse click on a button when I have a MouseEvent listener for the stage.
I have an MClip associated with the mouse cursor:
Mouse.hide();
scope.startDrag(true);
And ...
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;
...
0
votes
0answers
702 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 ...
3
votes
3answers
2k views
Multiplayer API with Unity 3.5 and AS3
On the faq for the current preview release, http://unity3d.com/unity/preview/faq it says that while networking is not currently supported for flash compilation, we can write our own in AS3 using the ...
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 ...