I’ve just learned the basics of programmatic animation in Actionscript 3.0 but I can’t seem to think of the right solution for this problem.
Here is what I’m trying to do: A ball moves at a certain speed from the left of the screen to the right end. If there’s a box in the way, it keeps bumping into it until the box breaks and it continues moving forward.
The box will have a set weight that will control how much it slides when it is bumped by the ball. The ball will be pushed back a bit when it bumps the box.
I have a very specific idea and all I need is a little help starting. How would you tackle this problem?