ARRIVING BY BOAT

If you don't like to use the "u" key to free the avatar's movements you can capture the end of the animation testing currentTime=0. The name of the boat is land2

The "sea" has animation ...

Part of the code:

on control me

  if link=1 then
    myworld.model("avatar").worldposition =  myworld.model("land2").worldposition
  end if
  
 
  if myworld.model("land2").keyframePlayer.currentTime = 0 then  -- end of animation 
   link=0
  end if

etc.etc.

PREVIOUS NEXT
T. CONTENTS HOMEPAGE