|
-
Can you resize the hit area of a movieclip?
im using hitTest. alot but the boxes around my MCs are getting just a little to big and the collisions are happening to soon. Can that box (the one that has the light blue lines that you see when you select the movieclip) be resized without actually making the symbol smaller?
-
I tried...
Just put an invisible rectangle inside the MC of how big you want the hit area to be.
-
Use art collision. It's much better.
Checkout my site:
Click HERE
Checkout my games:
Oops! No game for now!
-
 Originally Posted by Gamerflash
Use art collision. It's much better.
?
-
Create a movieclip called mcHitArea.
Make a layer called area, and put a rectangle in it.
Make a layer called action, and put this code in it:
this._visible = false;
this._parent.hitArea = this;
Then, create a new layer in your actual movieclip called hit area, and put mcHitArea in this layer. Resize the box to anything you want.
Now your collision will use the new area instead.
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
|