Why doesnt this hittest WORK.properly

  • Jummm
  • Novice
  • Novice
  • Jummm
  • Posts: 17

Post 3+ Months Ago

onClipEvent (enterFrame) {
if (_root.man.hitTest(this)) {
_parent.prevFrame();

}
}

im useing flash 8


looks simple, and it works, but problem is, ya know when you highlight a movieclip, you get those bluelines around it, the problem is, when my man touchs them AND the drawing in the MC, i want it so its you can only get caught by touching the drawing inside the MC
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

not sure what u mean,
but dont try to draw something in the existing movie ... it may increase it`s size
  • Jummm
  • Novice
  • Novice
  • Jummm
  • Posts: 17

Post 3+ Months Ago

what do you mean?
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

lets say you have a movie clip, called holder
inside mcHolder, u create another movie clip, called mcImg, in which u load an image.
also, inside mcHolder u have another movie clip called mcHighlight, which for start is empty.
So, after you load the image, mcHolder will have the same size as the image loaded in mcImg.
Then you use movie clip mcHolder to test if it hits something.
When it hits something, u draw or load inside mcHighlight something which is bigger than the image from mcImg, thus changing the mcHolder size too.
And now when the hitTest is made, it will use the new dimensions of mcHolder to see if it hits a target.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 20 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.