
This is what I want to do: I want to have a little ball follow the mouse but not go into any walls at all. Here is a swf of my current attempts at doing this:
http://www.swfcabin.com/open/1246752136
As you can see, if there is a Y obstruction but not an X one, the ball will still follow mouseX, and vice-versa. However, there are some glitchy limitations as to having the ball follow mouseX when there is a Y obstruction and it must go over some hills to get to mouseX.
Also, the code currently only checks to see if the four points around the ball are sinking into the walls, but it would be nice if it used more complex sphere calculations.
This is all very hard to explain, so please take a look at the fla so you can better understand what’s going on and help me: (Flash CS4)
If you would like to make a comment, please fill out the form below.
Recent Comments