Hi all,
This tutorial is a start in the field of advanced effect applied to Flash CS3 with Actionscript 3.0.
We saw how to rotate the coordinates of a MovieClip using a trigonometric formula.
We will now see how to rotate a whole system of coordinates.
Surely, it will have happened to you to have to intercept a collision in between two MovieClip as for instance a small ball and a vertical or horizontal surface.
We have seen how to do it in the tutorial that explains how to bounce a ball.
Instead what would happen if the surface would not be anymore horizontal but angled?
I mean as if the surface was going downward.
How to simulate the physical situation as if in reality we took a ball and made it bounce against a 45° tilted surface?
This is when the thing gets a great deal harder to realise and none of the formula used before and even less the hitTestObject can resolve this problem.
So…how can we do it?






