View Full Version : game
FlyBoy6
December 11th, 2003, 05:04 PM
waht is the code for makeing a boundry for a movieclip not to go past it i think it is hittest or something for a not flat boundry but im not shere what to make the boundry or where to put it like do i make the boundry a MC:?)
For Flash5
Marz
December 11th, 2003, 05:14 PM
Not sure if this works for flash 5...
And I'm not quite sure I understood what you really said...
But.. You have to have a point and a movieclip to do this...
if(_root.monkey.hitTest(_root.point._x, _root.point._y, TRUE))
*yawwwn*... Should be allright.
FlyBoy6
December 12th, 2003, 10:45 AM
hmm ill keep messin around with it
Scootman
December 12th, 2003, 08:18 PM
you could also do inside the movie clip you want to hit test...
if(this, hitTest(_root.targetMC, true))
{
blah;
}
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.