Okay, I have this mouse controlled object and I don't want it to be able to go through these obstacles (active objects) so I tried setting the object to Bouncy Ball movement and using Always set object to XMouse blah blah blah, but it didn't work. SO then I tried Fastloop and it almost worked except if you move the mouse fast enough, the object can go right through the obstacle. Is this hopeless or is there some way to do this..
thanks
oookay that worked, thanks.. but what about an arrow block, where you can only go through it in one direction. How would I do that? You would need to find the direction of the mouse movement or something...
(im using tgf by the way )
nah that doesn't work either.. I can send you the file if you give me your email addy.. sorry I dont have a web site other than geoshitties to upload to.
I created my own mouse controlled movement engine a while ago to deal with this. Rather than using mouse controlled movement or XMouse and YMouse I managed to detect when the mouse was moving using counters.
At the start of the frame, the counter "X" is set to XMouse and the counter "Y" is set to YMouse. Then we have an equation. If XMouse is greater than counter X, then set any value you like, or any flag you like, just something to confirm that it's moving. Then do the same with YMouse and counter Y, and another value or flag. Do it again in reverse, for if it's less than the counter, and then you have detected the mouse moving in all possible directions.
Then you can pick up on the value or flag you set, and make your character move in 8 directions according to that. Either by using X/Y co-ordinates and markers to detect obstacles, or by using a bouncing ball object and altering it's direction and speed.