Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4549


Ignore:
Timestamp:
Jan 26, 2007, 10:32:56 PM (18 years ago)
Author:
snellen
Message:

camera worksand is scriptable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/cutscene/cutscene.lua

    r4547 r4549  
    88
    99
     10time = 0
     11cameraSwitched = false
     12
    1013-- THE tick function
    1114
    1215function tick(timestep)
     16time = time + timestep
     17
     18if time > 2 and not cameraSwitched then
    1319cameraManager:setCam("Testcam")
     20cameraManager:changeCurrTarget( "Planet", "Earth")
     21cameraSwitched = true
     22end
    1423
     24if time > 4 then
     25cameraManager:togglFade()
    1526return true
     27end
     28
     29return false
    1630end
Note: See TracChangeset for help on using the changeset viewer.