hittest with timer...

  • hugo
  • Born
  • Born
  • hugo
  • Posts: 1
  • Loc: Joensuu, Finland

Post 3+ Months Ago

i need a timer which runs when it leaves a start box and end when it hits the goal box...
i know...
it should be easy...
:D
but i'm beginner... ;)
Greeting for all...
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • [SteF]
  • Beginner
  • Beginner
  • [SteF]
  • Posts: 58
  • Loc: Belgium

Post 3+ Months Ago

_root.onEnterFrame = function() {
if (<instanceName of your startbox>.hitTest(_root._xmouse, _root._ymouse, true) == false && <instanceName of your goulBox>.hitTest(_root._xmouse, _root._ymouse, true) == false) {

// place your timercode here

}
}

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 7 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
 
 

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