Tagged Questions
0
votes
1answer
57 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
104 views
Flixel or Pygame for a small game? [closed]
I have some experience in Bash and Python, Lua.
I've always wanted to try and make point & click quest games. Most
quest games I loved aesthetically and gameplay wise were made with
Flash.
So ...
-1
votes
1answer
60 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
54 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 ...
0
votes
1answer
104 views
Develop a 2d isometric mobile game on Flash [closed]
I'm building a game on Flash that will run on web/Android/iOS.
The game is 2d isometric.I heard that developing mobile apps on Flash sucks and the graphics looks just awful.It'd be quite uncomfortable ...
0
votes
2answers
54 views
Hide movieclip parts that are out of bounds
I'm making a game where one takes a picture of their face to use on a character. I have them zoom in on the picture, but the bitmapdata extends out of its movieclip. How do I assign bounds to my ...
0
votes
1answer
70 views
Camera in Flash
Im having a hard time trying to work out how to implement a smooth camera in flash.
In something like openGL i would use a transformation matrix to move the camera around the scene.
However with ...
0
votes
0answers
36 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 ...
0
votes
2answers
66 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
49 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 ...
0
votes
1answer
61 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
50 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
98 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
121 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 ...
0
votes
2answers
126 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
104 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
21 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)
0
votes
1answer
127 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 ...
0
votes
1answer
65 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
152 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 ...
-6
votes
2answers
122 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
151 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
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 ...
3
votes
2answers
308 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
103 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
80 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 ...
1
vote
1answer
202 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
...
3
votes
1answer
241 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 ...
0
votes
0answers
324 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 ...
1
vote
4answers
861 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
190 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 ...
0
votes
0answers
84 views
box2D simulation doesn't work [closed]
has been a while since last time i used box2D, and i needed to make some stuff, and i saw that my simulation don't worked (compiles, but do anything). i haven't been able to even have working the ...
1
vote
1answer
219 views
Create and use a Button class on AS3.0
I am currently working on a game and it is all going well.
On the shop screen there are several buttons that affect the player's stats for when the player restarts the game.
The button's names (with ...
2
votes
1answer
101 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
158 views
Stage3D: Camera pans the whole screen
I am trying to create a 2D Stage3D game where you can move the camera around the level in an RTS style. I thought about using Orthographic Matrix3D functions for this but when I try to scroll the ...
0
votes
1answer
158 views
How do I check on non-transparent pixels in a bitmapdata?
I'm still working on my window cleaning game from one of my previous questions
I marked a contribution as my answer, but after all this time I can't get it to work and I have to many questions about ...
-1
votes
1answer
207 views
Help needed throwing a ball in AS3
I'm working on a flash game, coding on the time line.
What I'm trying to accomplish is the following:
With the mouse you swing and throw/release a ball which bounces against the walls and eventualy ...
1
vote
0answers
110 views
Flick Kick like game with box2d and flash as3
What would be the best approach for creating a game like flick kick with box2d and AS3?.
To make my self more clear, what i would like to do is to use the physics of box2d in the z-axis, i know that ...
2
votes
1answer
266 views
Best way to generate pieces in match-3 games, and then tracking them?
I've been working on a match-3 style game in Actionscript using Flixel, and so far, I've been able to build the core mechanics of the game, including board generation, piece generation, piece swapping ...
2
votes
2answers
99 views
How to add a ramp in a flash game?
I am a huge novice and this isn't really a programming question, but here I go, say I want to make a game that involves rolling up a ramp like this one:
to move upwards, similar to how it would work ...
0
votes
0answers
294 views
RTS-style fog of war woes
So I'm trying to make an RTS-style line of sight fog of war style engine for my grid based game. Currently I am getting a set of vertices by raycasting in 360 degree. Then I use that list of vertices ...
0
votes
1answer
45 views
Affect movieclip scale from a .as doc to another [closed]
I've been working on a game following a tutorial on the internet, the game is an avoider where you have the Avatar, that has to avoid the objects that fall.
The way it is made is: I have a ...
0
votes
1answer
359 views
How to Generate Spritesheet from a 'problematic' animated Symbol in Flash Pro CS6?
In the new Flash Pro CS6 there is an option to generate spriteheet from a symbol. I used these tutorials:
http://www.adobe.com/devnet/flash/articles/using-sprite-sheet-generator.html
...
3
votes
1answer
112 views
Extract derived 3D scaling from a 3D Sprite to set to a 2D billboard
I am trying to get the derived position and scaling of a 3D Sprite and set them to a 2D Sprite.
I have managed to do the first part like this:
var p:Point = sprite3d.local3DToGlobal(new ...
0
votes
2answers
193 views
Large Sprite Performance
I've got a large Sprite generated using a set of vertices(x,y coordinates) and a bitmap pattern (using moveTo, lineTo, beginBitmapFill, endFill ...etc). It's about 15000 pixels wide and between 1500 - ...
1
vote
1answer
94 views
A few meta questions about making flash games [closed]
A few questions for a beginner game maker without an artist.
Is there a site where flash game creators can download (and use) free art? I don't need character sprites but environments like trees, ...
1
vote
1answer
125 views
How to center a game in Flash Projector (like AdamAtomic's CAPSULE)
Adam Atomic's game Capsule is a flash projector. If you press escape, the game goes out of fullscreen and just shows windowed. How do I get my (FLIXEL/AS3) game to show up centered like that?
1
vote
1answer
166 views
working in external actionscript file does not show anything on the screen?
I'm writing this code in Flash builder and I tested the file in flash, but nothing appears in the swf file. (no text in the screen show , i don't know why) Is there any missing property in the code? ...
2
votes
1answer
897 views
2d games unity vs Flash [closed]
do people find unity better than flash for 2d games while unity is 3d engine , or Flash still better because it's made for 2d games and flash can get the job done faster ,and now flash is better for ...
0
votes
1answer
82 views
Why I'm getting the same result when deleting target?
In the following code we use target in the function:
moon.mouseEnabled = false;
sky0.addChild(moon);
addEventListener(MouseEvent.MOUSE_DOWN, onDrag, false, 0, true);
...

