Changeset 4726
- Timestamp:
- Jan 31, 2007, 10:07:54 AM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4724 r4726 163 163 <maxSpeed>500</maxSpeed> 164 164 <Weapons>HeavyBlaster</Weapons> 165 <abs-coor>34 50, 0, 10</abs-coor>165 <abs-coor>3480, 0, 10</abs-coor> 166 166 <abs-dir> 3.14,0,1,0 </abs-dir> 167 167 </NPC> … … 191 191 <maxSpeed>500</maxSpeed> 192 192 <Weapons>HeavyBlaster</Weapons> 193 <abs-coor>34 50, 0, -10</abs-coor>193 <abs-coor>3480, 0, -10</abs-coor> 194 194 <abs-dir> 3.14,0,1,0 </abs-dir> 195 195 </NPC> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4723 r4726 75 75 triggerCutscene04:setActiveOnCreation(true) 76 76 77 -- Create another cutscene trigger 78 triggerCutscene05 = ScriptTrigger() 79 triggerCutscene05:setScript("vs1.lua") 80 triggerCutscene05:setFunction("changeFromNoxon") 81 triggerCutscene05:setActiveOnCreation(true) 82 83 77 84 -- Create the cool Ragnar trigger 78 85 triggerRagnar = ScriptTrigger() … … 121 128 triggerAI04:setRadius(50) 122 129 triggerAI04:setTarget("Player") 123 triggerAI04:setAbsCoor(6500, 0, - 400)130 triggerAI04:setAbsCoor(6500, 0, -350) 124 131 triggerAI04:setDebugDraw(true) 125 132 triggerAI04:setActiveOnCreation(false) 133 126 134 127 135 -- Global Variables … … 134 142 bossFightEnd = false 135 143 time = 0 144 time2 = 0 136 145 137 146 -- init function … … 141 150 cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01") 142 151 cameraManager:setRelCoor("CameraOne", 10, 8 , -5) 143 cameraManager:setRelCoor("CameraTwo", 10, 8 ,5)152 cameraManager:setRelCoor("CameraTwo", 20, 8 , -5) 144 153 145 154 … … 227 236 Ragnar02:setAI(true) 228 237 bossFight = true 229 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 120, 0, 20) 238 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 140, 0, 20) 239 -- Player:setCameraDist(140) 230 240 Player:pause(true) 231 241 return true … … 255 265 end 256 266 267 return false 268 end 269 270 function changeFromNoxon(timestep) 271 if bossFightEnd then 272 time2 = time2 + timestep 273 end 274 275 if time2 > 6 and time2 < 8 then 276 Noxon01:fire() 277 Noxon02:fire() 278 Noxon03:fire() 279 cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Ragnar02") 280 cameraManager:setRelCoorSoft("CameraTwo", 60, 20 , -10, 6) 281 end 282 283 284 if time2 > 9 and time2 < 10 then 285 Ragnar02:destroy() 286 end 287 288 if time2 > 11 then 289 cutscene2End = true 290 end 291 292 if cutscene2End then 293 cameraManager:setCam("GameWorld-Camera") 294 cameraManager:setRelCoor("GameWorld-Camera", -0.05, 70, 0) 295 296 Player:pause(false) 297 end 257 298 258 299 return cutscene2End 259 300 end 301 260 302 261 303
Note: See TracChangeset
for help on using the changeset viewer.