Changeset 4760
- Timestamp:
- Feb 14, 2007, 7:27:58 PM (18 years ago)
- Location:
- data/trunk/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/cutscene/cutscene.lua
r4671 r4760 87 87 88 88 function switchCamToSpaceship(timestep) 89 cameraManager:at achCurrCameraToWorldEntity( "NPC", "shutleOne")89 cameraManager:attachCurrCamera( "NPC", "shutleOne") 90 90 return true 91 91 end 92 92 93 93 function switchCamToStation(timestep) 94 cameraManager:at achCurrCameraToWorldEntity("Building", "zhara")94 cameraManager:attachCurrCamera("Building", "zhara") 95 95 stationReached = true 96 96 time = 0 … … 194 194 cameraManager:setCam("CameraOne") 195 195 cameraManager:jumpCurrCam(125,0,-245) 196 --cameraManager:at achCurrCameraToWorldEntity("NPC", "transporterOne")196 --cameraManager:attachCurrCamera("NPC", "transporterOne") 197 197 cameraManager:changeCurrTarget("Building", "zhara") 198 198 cameraSwitched = true -
data/trunk/scripts/vertical_scroller/vs1.lua
r4753 r4760 155 155 -- init function 156 156 function init(timestep) 157 -- cameraManager:setCam("GameWorld -Camera")158 cameraManager:at achCameraToWorldEntity("CameraOne", "NPC", "Pirate01")159 cameraManager:at achCameraToWorldEntity("CameraTwo", "NPC", "Noxon01")157 -- cameraManager:setCam("GameWorldCamera") 158 cameraManager:attachCamera("CameraOne", "NPC", "Pirate01") 159 cameraManager:attachCamera("CameraTwo", "NPC", "Noxon01") 160 160 cameraManager:setRelCoor("CameraOne", 10, 8 , -5) 161 161 cameraManager:setRelCoor("CameraTwo", 30, 15 , -10) … … 182 182 183 183 if counter > 5 and counter < 6 then 184 cameraManager:at achCameraToWorldEntity("CameraOne", "NPC", "Pirate03")184 cameraManager:attachCamera("CameraOne", "NPC", "Pirate03") 185 185 cameraManager:setRelCoorSoft("CameraOne", 10, 8 , 5, 6) 186 186 … … 190 190 cutsceneEnd = true 191 191 Player:pause(false) 192 cameraManager:setCam("GameWorld -Camera")192 cameraManager:setCam("GameWorldCamera") 193 193 end 194 194 … … 245 245 --Ragnar02:setAI(true) 246 246 bossFight = true 247 cameraManager:setRelCoorSoft("GameWorld -Camera", -0.05, 140, 0, 20)247 cameraManager:setRelCoorSoft("GameWorldCamera", -0.05, 140, 0, 20) 248 248 -- Player:setCameraDist(140) 249 249 Player:pause(true) … … 272 272 if bossFightEnd then 273 273 cameraManager:setCam("CameraTwo") 274 cameraManager:setRelCoorSoft("GameWorld -Camera", -0.05, 70, 0)274 cameraManager:setRelCoorSoft("GameWorldCamera", -0.05, 70, 0) 275 275 end 276 276 … … 287 287 Noxon02:fire() 288 288 Noxon03:fire() 289 --cameraManager:at achCameraToWorldEntity("CameraTwo", "NPC", "Ragnar02")289 --cameraManager:attachCameraToWorldEntity("CameraTwo", "NPC", "Ragnar02") 290 290 cameraManager:setRelCoorSoft("CameraTwo", 60, 20 , -10, 6) 291 291 end … … 299 299 cutscene2End = true 300 300 301 cameraManager:setRelCoorSoft("GameWorld -Camera", -0.05, 70, 0)302 cameraManager:setCam("GameWorld -Camera")301 cameraManager:setRelCoorSoft("GameWorldCamera", -0.05, 70, 0) 302 cameraManager:setCam("GameWorldCamera") 303 303 304 304 Player:pause(false)
Note: See TracChangeset
for help on using the changeset viewer.