5 votes
Accepted

How to make game like Gals Panic

Gals Panic, is a Qix type game. You may search for Qix to get more information on how things work. The general concept here is, having two images. One is the picture that you want to be revealed. The ...
user avatar
  • 3,989
4 votes

Do Java and Actionscript use OpenGL?

Java defaults to using GDI (AWT, Swing). JavaFX supposedly will be able to make use of OpenGL in future. Java + LWJGL (an OpenGL wrapper that accesses native opengl32.dll via JNI) provides more direct ...
user avatar
  • 29.1k
4 votes

Should a bowling game use a 2d or a 3d physics engine?

When developing games it is important to separate the game mechanics from the game representation on the screen. The game mechanics of bowling can be simplified to a pure 2d simulation by looking at ...
user avatar
  • 112k
3 votes
Accepted

Do Java and Actionscript use OpenGL?

Nick already gave a more specific answer, but I get the sense from your question that you'd benefit from a more generic answer. Different platforms have various ways of getting pixels to the screen. ...
user avatar
  • 7,773
3 votes
Accepted

How can we test a section of a game?

They have console commands. There is a reason skyrim has all the commands in it. That game was very extensibly tested. And because it has couple hundred hours of content with every cave and guild, ...
user avatar
  • 14.5k
3 votes
Accepted

Feasible to do all game logic on PHP server?

It depends on your skill at programming, but it should be feasible. Remember, Facebook was built in PHP and it serves a pretty big crowd. A better question might be if PHP is the best choice for what ...
user avatar
  • 1,546
2 votes
Accepted

multiple flash timeline animations with actionscript

Put the horse animation on play and remove the horseTwo.gotoAndPlay(next); line from the event listener. The problem is the ...
user avatar
  • 36
2 votes

Framerate on AIR for Android - Actionscript 3

It appears I was just being tired and overworking on the file after having got some sleep and re made the file in timeline I am maintaining a steady memory usage and steady framerate, but the ...
user avatar
  • 41
2 votes
Accepted

Moving objects in a circular path, and also moving the whole group

This is the concept: You add "rotation movement" and "linear movement" together, and you get "rolling movement". Once you calculated all vectors for rotation movement, then you can simply add linear ...
user avatar
2 votes

Moving objects in a circular path, and also moving the whole group

All you have to do to be able to freely move your items in a circle around the screen is: Measure the x and y distance from 0, 0 to the center of the circle. Put the values into variables. Set the x ...
user avatar
2 votes

How can I minimise memory thrashing when doing vector math in JavaScript or ActionScript?

A possible approach that could be very quick is to create one or more webworkers for your computational tasks. A webworker doesn't share any memory with the main thread or other webworker, so it won't ...
user avatar
  • 21
2 votes
Accepted

AS3 .hitTestObject() not working with Tween function

I'm sure this has nothing to do with the Tweening library you're using (as indicated in the comments) but rather with how you reference your enemy in the ...
user avatar
  • 22.5k
2 votes

How can we test a section of a game?

A bad development team would hire a bunch of QA staff (testers) to play the game over and over again, reporting bugs into an ever vacuous database. Even with the aid of console commands this is an ...
user avatar
1 vote

Air AS3 Desktop - Detecting wrong screen resolution and coordinate offset

In order to listen to stage resize, orintation change, and to position items correctly on your screen, the only option is: Stage.align = StageAlign.TOP_LEFT; Stage.scaleMode = StageScaleMode.NO_SCALE; ...
user avatar
1 vote

AS3/Flash Develop - Radial Gravity (character on planet simulation)

I'll use vector notation to be concise. You can translate this into individual vectorX and vectorY numbers if you're not using a vector math library, just be careful to calculate the length below ...
user avatar
  • 114k
1 vote

2D Change Velocity Based on Distance XY While Moving Parabolic Arc

Background info: line drawing algorithms A similar problem to yours is the line drawing problem, i.e. how to draw a "smooth" line on a raster display (a display with discrete pixels). A famous ...
user avatar
1 vote

How can I minimise memory thrashing when doing vector math in JavaScript or ActionScript?

As with your other question, I think you need to profile your code and assess the bottlenecks. Languages like Javascript, which perform significant allocations by design of the language, have ...
user avatar
  • 3,022
1 vote

AS3 - Increase tint as health decreases

A friend of mine actually provided a great solution on Facebook. Healthratio = currentHealth/MaxHealth tintRatio = 1.0 - healthratio Anyway, I wanted to share ...
user avatar
1 vote

addChild does not work in Flash

I'm not familiar with flash/as3. This said, I fail to see what instance would be the parent to the child you're adding with addChild in a ...
user avatar
  • 15.5k
1 vote

Animate/Interpolate and wait for completion.

You are wanting to "lerp" between two Vectors, although I cannot tell you how to do it in AS3. The position will be based on a start-point, an end-point, and a % between the two. The % is usually a ...
user avatar
  • 3,624
1 vote

AS3 random events using a timer

Before you read the code provided make sure you understand the pseudo code. ...
user avatar
  • 111
1 vote

In AS3, is it necessary to remove the children from a parent who is also being removed?

Once you remove parentMC and set it as null, garbage collection will take care of its children. When you remove the parent ...
user avatar
  • 138
1 vote

change the position of f3d objects randomly in action script

I'm not sure I understand the relevance of the random array function, but to set a random position for each box you could create a helper function which returns a random number between ...
user avatar
  • 206
1 vote
Accepted

Controlling depths of objects in Flash

I figured it out. I used the DisplayObjects function swapChildren() and it did the job!
user avatar
  • 425
1 vote
Accepted

Mouse follow precision in flash

I don't think there's enough information to diagnose the problem, but my guess is that you have the MOUSE_MOVE handler on the object you're dragging. That event ...
user avatar
  • 5,866
1 vote

How do I combine matrix transformation with non-uniform screen scaling in Flash?

I think I solved it. The answer is: ...
user avatar
  • 203
1 vote

Shared Object Not saving the level Progress

Solution Actually in the main function i have to assign the levelState the value from the ShredObject . In the first part of the above code i added some lines like this ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible