//------------------------------------------------------------------------------
//Dont move while falling and set target point
IfSpawned
  tmpargument = 5
  SetSpeedPercent
  tmpx = 12000
  tmpy = 6550
  ClearWaypoints
  AddWaypoint
  tmpargument = 140
  SetTime

//------------------------------------------------------------------------------
//Make it roll
IfHitGround
  tmpargument = 0
  PlaySound
  tmpargument = 60
  SetSpeedPercent

//------------------------------------------------------------------------------
//Get some extra speed when reaching the stairs
IfTimeOut
  tmpargument = 95
  SetSpeedPercent
  tmpargument = 0
  IfContentIs
    tmpargument = 2
    PlayFullSound		//Play the Indy tune xD
    tmpargument = 1
    SetContent			//Dont repeat

//------------------------------------------------------------------------------
//Reached the end!
tmpx = gotodistance
tmpy = 200
IfXIsLessThanY
  tmpargument = 1
  SetState

//------------------------------------------------------------------------------
//Crush folks
IfStateIs0
  IfBumped
    SetTargetToWhoeverBumped
    KillTarget
    tmpargument = LATCHJUMP
    PressLatchButton			//"bump" over them
Else
  Stop
  tmpx = selfx
  tmpy = selfy
  ClearWaypoints
  AddWaypoint

End					// All done
