1 Reply Latest reply on Jan 9, 2008 11:20 AM by Wolfgang Herold

    intersects and time

    Level 7
      Hello:
      I need to wait any amount of time (for example two seconds) after one sprite
      intersects another one. But I don't know how save the initial time when
      sprite intersect.
      ny suggestion?
      thank you


      global moving

      on exitFrame me
      go to the frame
      if moving then
      sprite(2).locV=sprite(2).locV+1

      if sprite 2 intersects sprite 5 then
      sprite(4).visible=true
      if the timer>400 then
      sprite(4).visible=false
      end if
      else
      sprite(4).visible=false
      end if

      end if
      end