Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4726


Ignore:
Timestamp:
Jan 31, 2007, 10:07:54 AM (18 years ago)
Author:
bknecht
Message:

vertical_scroller update

Location:
data/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/levels/vertical_scroller.oxw

    r4724 r4726  
    163163      <maxSpeed>500</maxSpeed>
    164164      <Weapons>HeavyBlaster</Weapons>
    165       <abs-coor>3450, 0, 10</abs-coor>
     165      <abs-coor>3480, 0, 10</abs-coor>
    166166      <abs-dir> 3.14,0,1,0 </abs-dir>
    167167    </NPC>
     
    191191      <maxSpeed>500</maxSpeed>
    192192      <Weapons>HeavyBlaster</Weapons>
    193       <abs-coor>3450, 0, -10</abs-coor>
     193      <abs-coor>3480, 0, -10</abs-coor>
    194194      <abs-dir> 3.14,0,1,0 </abs-dir>
    195195    </NPC>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4723 r4726  
    7575triggerCutscene04:setActiveOnCreation(true)
    7676
     77-- Create another cutscene trigger
     78triggerCutscene05 = ScriptTrigger()
     79triggerCutscene05:setScript("vs1.lua")
     80triggerCutscene05:setFunction("changeFromNoxon")
     81triggerCutscene05:setActiveOnCreation(true)
     82
     83
    7784-- Create the cool Ragnar trigger
    7885triggerRagnar = ScriptTrigger()
     
    121128triggerAI04:setRadius(50)
    122129triggerAI04:setTarget("Player")
    123 triggerAI04:setAbsCoor(6500, 0, -400)
     130triggerAI04:setAbsCoor(6500, 0, -350)
    124131triggerAI04:setDebugDraw(true)
    125132triggerAI04:setActiveOnCreation(false)
     133
    126134
    127135-- Global Variables
     
    134142bossFightEnd = false
    135143time = 0
     144time2 = 0
    136145
    137146-- init function
     
    141150cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01")
    142151cameraManager:setRelCoor("CameraOne", 10, 8 , -5)
    143 cameraManager:setRelCoor("CameraTwo", 10, 8 , 5)
     152cameraManager:setRelCoor("CameraTwo", 20, 8 , -5)
    144153
    145154
     
    227236Ragnar02:setAI(true)
    228237bossFight = true
    229 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 120, 0, 20)
     238cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 140, 0, 20)
     239-- Player:setCameraDist(140)
    230240Player:pause(true)
    231241return true
     
    255265end
    256266
     267return false
     268end
     269
     270function changeFromNoxon(timestep)
     271if bossFightEnd then
     272time2 = time2 + timestep
     273end
     274
     275if time2 > 6 and time2 < 8 then
     276Noxon01:fire()
     277Noxon02:fire()
     278Noxon03:fire()
     279cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Ragnar02")
     280cameraManager:setRelCoorSoft("CameraTwo", 60, 20 , -10, 6)
     281end
     282
     283
     284if time2 > 9 and time2 < 10 then
     285Ragnar02:destroy()
     286end
     287
     288if time2 > 11 then
     289cutscene2End = true
     290end
     291
     292if cutscene2End then
     293cameraManager:setCam("GameWorld-Camera")
     294cameraManager:setRelCoor("GameWorld-Camera", -0.05, 70, 0)
     295
     296Player:pause(false)
     297end
    257298
    258299return cutscene2End
    259300end
     301
    260302
    261303
Note: See TracChangeset for help on using the changeset viewer.