hittest with timer...

  • hugo
  • Born
  • Born
  • No Avatar
  • Joined: May 29, 2005
  • Posts: 1
  • Loc: Joensuu, Finland
  • Status: Offline

Post May 29th, 2005, 11:33 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 29th, 2005, 11:33 am

  • [SteF]
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jan 14, 2005
  • Posts: 58
  • Loc: Belgium
  • Status: Offline

Post June 3rd, 2005, 8:09 am

_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 114 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.