all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

Re: actionscript: stop object going of screen...



Re: actionscript: stop object going of screen... IwannaFlashU
7/18/2004 9:11:09 PM
flash actionscript: I'm just posting here because the forum server was hiccuping when i posted
above and the topic didn't get updated to let you know that I posted. (if you
dont believe me, count the posts that are actually here and see how many the
thread list says there are).

anyhow, again, lose the code, go back to your working version and try MASKING
the car as described above, in my first post. you don't need any code to do
what you're trying to do and it's much easier.
Re: actionscript: stop object going of screen... WickedSense
7/18/2004 9:46:43 PM
Re: actionscript: stop object going of screen... mandingo
7/18/2004 11:56:25 PM
Here is a short example .FLA I threw together...

basically what I did was made a 'road' movieClip that contains 4 lines with
alpha's set to 0 so they won't have any visual element as such. I then gave
them an instance name of roadTop,roadLeft,roadBottom and roadRight respectively.

on the car movieClip, we test if it hits those boundaries.

I hope this helps,
cheers
Re: actionscript: stop object going of screen... wildteen88
7/19/2004 8:42:28 AM
Okay,

here you go here is my .fla file for my car game, I have got todds example to
use.in with my actionscript but nothing seems to happen or any thing.

I think there is a problem with my script.


AddThis Social Bookmark Button