Tagged Questions
-5
votes
0answers
92 views
Classic random script [closed]
I dont understand why
random(99);
and
engine<=14)
and
engine<=69)
and
else { //this is the remainding percentage which is accorded to "9".
randomnumber = 9; #
on (release) {
...
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
63 views
Get location of nearest array object [duplicate]
Is there an algorithm that would calculate the location of the nearest MovieClip in an array? Perhaps a loop? If so, what?
0
votes
1answer
55 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 ...
-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 ...
-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
52 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 ...
4
votes
0answers
216 views
FlashPunk + Flashdevelop - How to use sponsor provided preloader
I have developed a flash game using FlashPunk (on FlashDevelop). And now that I am trying to add a sponsor preloader and splashscreen to my game, I realize the flashpunk forums are down, and have been ...
-4
votes
1answer
78 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 ...
1
vote
5answers
1k views
Are there any sample projects for Flashpunk?
Are there any open source games using Flashpunk? The other big flash game library Flixel has a number of example projects, are there any equivalents for Flashpunk?
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 ...
0
votes
2answers
371 views
Design Pattern for Social Game Mission Mechanics
When we want to design a mission sub-system like in the The Ville or Sims Social, what kind of design pattern / idea would fit the best? There may be relation between missions (first do this then this ...
2
votes
1answer
690 views
UDK HUD problem
I'm trying to add a new element to the HUD, it's supposed to be a compass that should function like a minimap.
I've added this code to the main hud.swf:
var DcompassContainer:MovieClip = ...
6
votes
6answers
1k views
Beginner flash game development: Start with framework or from scratch?
I want to write some simple flash games (as a hobby). I have a lot of programming experience, but no experience with Flash/ActionScript.
My question is:
As a beginner, is it a good idea to start with ...
1
vote
2answers
169 views
Need help in determing what, if any, tools can be used to create a free Flash game
Yes I proudly -and sadly- declare that I am a complete nincompoop when it comes to Flash, and I have been fishing around the big wide web for information. The reason for this is that I have been ...
4
votes
1answer
340 views
Is Scaleform/Flash used in console games for non-UI, game elements?
I work for Konami as a Flash developer, and got sent some code for a puzzle mini-game from a new, yet-to-be-released Silent Hill game for PS3/Xbox 360. It was a windows executable, but it was made in ...
-5
votes
2answers
304 views
my hitTest() doesnt work at times?
i have a code segment in which i use hitTest() a couple of times. and at a particular section the hitTest stops working. it doesnt test the collision of body a and body b
i tried using ...
4
votes
5answers
310 views
Developing Flash games on the Wii
Has anyone used WiiFlash for developing Flash games? Any pointers on how to begin developing games for the Opera channel for the Wii?
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 ...