Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 30, 2006, 6:24:01 PM (18 years ago)
Author:
snellen
Message:

implemented fallingguy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/falldown.lua

    r3962 r3966  
    1 
     1dy = 0
    22randTime = 0
    33eventFinished = false
     
    1515
    1616function fallDown(timestep)
     17dy = dy + timestep*0.01
     18thisX = fallingguy:getAbsCoorX()
     19thisY = fallingguy:getAbsCoorY()
     20thisZ = fallingguy:getAbsCoorZ()
    1721
     22fallingguy:setAbsCoor(thisX, thisY - dy, thisZ)
     23
     24if thisY < 0 then
    1825eventFinished = true
     26end
     27
    1928end
    2029
     
    2736randTime = randTime - timestep
    2837else
    29 --io.write("Falldown called \n")
    3038fallDown(timestep)
    3139end
Note: See TracChangeset for help on using the changeset viewer.