28Jan

[AS 3] Squishing Effect

1 comment so far

So Gahlord from over at www.n0d3.org has been wanting to see a squishing effect applied on an object (ball) upon a collision (right wall). Below is a simple animation to demonstrate. The effect can be influenced by changing the objects mass as it calculates the spring distance.
Squishing effect:


Here is [...]

Categories: Actionscript 3, Physics
25Jan

[AS 3] Keyboard Events with Acceleration

No comments

Here is just a simple interactive animation. You can control the wheel with your left and right keys. When the object is off the screen, it will wrap around to the other side. You can view the project here in a new window, click the flash movie to activate.I created a new wheel class that [...]

Categories: Actionscript 3, Physics
24Jan

[AS 3] Bouncing Balls with Collision Detection within Bounds

4 comments so far

So, just playing around for now. Here is just some code where you can hardcode in the number of balls to animate within the stage area. You can also change the bounding area, with a few more variables, so the balls will be contained. This may serve as a little groundwork for a simple interactive [...]

Categories: Actionscript 3, Physics