-
action when MC Xpos==?? ?
Im trying to perform an actions when a movieclips position is equal to a certain coordinate - but i cant seem to work out what the code sould be
also - would I have to continuesley loop this code to keep checking the position somehow? would this slow down things at all?
thanks alot for your help on this
-
Registered User
It should go like this:
if (_root.clip1._x==35)and (_root.clip1._y==75)
And so on...
Usualy the problem with this part of code is that the clip is not on actual integer (34.8), so it would be wiser to use something like this:
if ((_root.clip1._x-35)<1) and ((_root.clip1._y-75)<1)
And so on...
No, constant checking on position would not slow down your movie a lot.
-
thanks alot - tis always so simple when you're shown how
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|