Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4760


Ignore:
Timestamp:
Feb 14, 2007, 7:27:58 PM (18 years ago)
Author:
snellen
Message:

adapted the scripts to the new cameramanager

Location:
data/trunk/scripts
Files:
2 edited

Legend:

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

    r4671 r4760  
    8787
    8888function switchCamToSpaceship(timestep)
    89 cameraManager:atachCurrCameraToWorldEntity( "NPC", "shutleOne")
     89cameraManager:attachCurrCamera( "NPC", "shutleOne")
    9090return true
    9191end
    9292
    9393function switchCamToStation(timestep)
    94 cameraManager:atachCurrCameraToWorldEntity("Building", "zhara")
     94cameraManager:attachCurrCamera("Building", "zhara")
    9595stationReached = true
    9696time = 0
     
    194194cameraManager:setCam("CameraOne")
    195195cameraManager:jumpCurrCam(125,0,-245)
    196 --cameraManager:atachCurrCameraToWorldEntity("NPC", "transporterOne")
     196--cameraManager:attachCurrCamera("NPC", "transporterOne")
    197197cameraManager:changeCurrTarget("Building", "zhara")
    198198cameraSwitched = true
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4753 r4760  
    155155-- init function
    156156function init(timestep)
    157 -- cameraManager:setCam("GameWorld-Camera")
    158 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
    159 cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01")
     157-- cameraManager:setCam("GameWorldCamera")
     158cameraManager:attachCamera("CameraOne", "NPC", "Pirate01")
     159cameraManager:attachCamera("CameraTwo", "NPC", "Noxon01")
    160160cameraManager:setRelCoor("CameraOne", 10, 8 , -5)
    161161cameraManager:setRelCoor("CameraTwo", 30, 15 , -10)
     
    182182
    183183if counter > 5 and counter < 6 then
    184 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03")
     184cameraManager:attachCamera("CameraOne", "NPC", "Pirate03")
    185185cameraManager:setRelCoorSoft("CameraOne", 10, 8 , 5, 6)
    186186
     
    190190cutsceneEnd = true
    191191Player:pause(false)
    192 cameraManager:setCam("GameWorld-Camera")
     192cameraManager:setCam("GameWorldCamera")
    193193end
    194194
     
    245245--Ragnar02:setAI(true)
    246246bossFight = true
    247 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 140, 0, 20)
     247cameraManager:setRelCoorSoft("GameWorldCamera", -0.05, 140, 0, 20)
    248248-- Player:setCameraDist(140)
    249249Player:pause(true)
     
    272272if bossFightEnd then
    273273cameraManager:setCam("CameraTwo")
    274 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 70, 0)
     274cameraManager:setRelCoorSoft("GameWorldCamera", -0.05, 70, 0)
    275275end
    276276
     
    287287Noxon02:fire()
    288288Noxon03:fire()
    289 --cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Ragnar02")
     289--cameraManager:attachCameraToWorldEntity("CameraTwo", "NPC", "Ragnar02")
    290290cameraManager:setRelCoorSoft("CameraTwo", 60, 20 , -10, 6)
    291291end
     
    299299cutscene2End = true
    300300
    301 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 70, 0)
    302 cameraManager:setCam("GameWorld-Camera")
     301cameraManager:setRelCoorSoft("GameWorldCamera", -0.05, 70, 0)
     302cameraManager:setCam("GameWorldCamera")
    303303
    304304Player:pause(false)
Note: See TracChangeset for help on using the changeset viewer.