PDA

View Full Version : [AS3] Balance Game like iphone feature


Rahzizzle
09-16-2009, 04:22 PM
I have an idea to create a game within a movieclip and depending on the mouse position the movieclip will tilt and effect the game accordingly. The concept is to have the movielclip like a horizontal iphone, so say the user has the mouse on the top of the movieclip, I want it to tilt 'up' and have the movieclip recognize this and change the 'gravity' of the game accordingly.
I know actionscript 3 well but how would I go about adding code to rotate a movieclip in 3d and have it recognize its own rotation, if that makes any sense.

Thanks! :)

RogerClark
09-17-2009, 12:44 AM
You should probably look at two technologies to see if either fits the bill.

For 3D take a look at PaperVision3D . They have done some work combining a Physics engine http://papervision2.com/physics-in-papervision/

For pure physics engines look at Box2D and APE