Tagged Questions
4
votes
1answer
141 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 ...
0
votes
1answer
726 views
as3 3D camera lookat
I'm making a 3D camera scene in Flash, draw using drawTriangles() and rotated and translated using a Matrix3D. I've got the camera to look after a specific point, but only on the Y-axis, using the x ...
1
vote
1answer
181 views
How can I more efficiently write my Math-Code in AS3
So this might be an odd question to ask. But I'm not really the biggest mathematician out there, and I have a weird habit of writing code. So I'm going to post what I'm working on. I'm doing a ...
5
votes
2answers
2k views
How to detect 2D line on line collision?
I'm a flash actionscript game developer who is a bit backward with mathematics, though I find physics both interesting and cool.
For reference this is a similar game to the one I'm making: Untangled ...
0
votes
2answers
1k views
As3 Random movieclips from an array to the stage
For a game with orders and clients I was trying to create the following situation:
Every half minute, a client should appear at the counter. In this case I have an array with 4 movieclips (4 ...
6
votes
4answers
2k views
How can I render a circular progress bar procedurally?
I'm working in Flash AS3, but pseudo-code or any other language is fine.
How can I make a circular progress bar? Akin to the ship bars in Pax Britanica, you can see them in the screenshot here.
...
9
votes
1answer
1k views
Angle of Reflection
I have this "Breakeout style" game.
I have a cannon at the center, blocks around the cannon and pads around the blocks. This is how the game looks like:
I've managed to get the collision per ...
1
vote
1answer
147 views
Is there a memory read/write or performance difference when applying affine transformations on a movieclip rather basic elementary math
I am using Actionscript 3.0 to make games and I fall into the category of programmers who use ball.x+=5;
ball.y+=5;
in order to move a ball by 5 pixels horizontally and vertically.
Well, now i seem ...
5
votes
4answers
343 views
How would one generate a texture for cracks in different materials?
I would want to have the ability to simulate different variables like brittleness, or other variables to get varied end results.
I would mainly need to generate impact cracks, so it would need to ...
2
votes
5answers
1k views
How can I make my score-based game addictive
Hey Guys ,
I need some ideas to make the USER interest in the game result. Other Wise he plays again to get high score . My game is a calculation game measure the speed of calculation of the user ...
3
votes
3answers
942 views
Generating background tiles for a side-scroller with variable player speed
I'm currently working on a side-scroller which lets the player alter their speed and I wondered how should I properly generate and control background tiles for such a kind o game. I'm using Flixel but ...
7
votes
3answers
3k views
What is a simple algorithm for calculating evenly distributed points on an ellipse?
I am looking for a simple algorithm to plot evenly distributed points on an ellipse, given the major and minor axes. This is really easy to do with a circle like so:
var numberOfPoints = 8;
var ...