Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2007, 1:25:36 AM (17 years ago)
Author:
bknecht
Message:

vertical_scroller update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4684 r4694  
    22thisscript:addObject("SpaceShip", "Player")
    33thisscript:addObject("CameraMan", "cameraManager")
     4
     5-- The Pirates
    46thisscript:addObject("NPC", "Ragnar01")
    57thisscript:addObject("NPC", "Ragnar02")
     
    1315thisscript:addObject("NPC", "Pirate08")
    1416thisscript:addObject("NPC", "Pirate09")
     17
     18-- The Noxons
     19thisscript:addObject("NPC", "Noxon01")
     20thisscript:addObject("NPC", "Noxon02")
     21thisscript:addObject("NPC", "Noxon03")
     22thisscript:addObject("NPC", "Noxon04")
     23thisscript:addObject("NPC", "Noxon05")
     24--thisscript:addObject("NPC", "Noxon06")
     25--thisscript:addObject("NPC", "Noxon07")
     26--thisscript:addObject("NPC", "Noxon08")
     27--thisscript:addObject("NPC", "Noxon09")
     28--thisscript:addObject("NPC", "Noxon10")
     29--thisscript:addObject("NPC", "Noxon11")
     30--thisscript:addObject("NPC", "Noxon12")
     31
    1532-- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
    1633
     
    3653triggerCutscene02:setActiveOnCreation(true)
    3754
     55-- Create another cutscene trigger
     56triggerCutscene03 = ScriptTrigger()
     57triggerCutscene03:setScript("vs1.lua")
     58triggerCutscene03:setFunction("surviver")
     59triggerCutscene03:setActiveOnCreation(true)
     60
     61-- Create another cutscene trigger
     62triggerCutscene04 = ScriptTrigger()
     63triggerCutscene04:setScript("vs1.lua")
     64triggerCutscene04:setFunction("onNoxons")
     65triggerCutscene04:setActiveOnCreation(true)
     66
    3867-- Create the cool Ragnar trigger
    3968triggerRagnar = ScriptTrigger()
     
    89118counter = 0
    90119cutsceneRunning = false
     120cutscene2Running = false
    91121cutsceneEnd = false
     122cutscene2End = false
    92123bossFight = false
    93124bossFightEnd = false
     
    97128-- cameraManager:setCam("GameWorld-Camera")
    98129cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
     130cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01")
    99131cameraManager:setRelCoor("CameraOne", 10, 8 , 5)
    100 cameraManager:setRelCoorSoft("GameWorld-Camera", 0, 100, 0, 10)
     132cameraManager:setRelCoor("CameraTwo", 10, 8 , 5)
     133Player:setCameraDistance(100)
     134
    101135
    102136Ragnar01:pause(true)
     
    181215Ragnar02:setAI(true)
    182216bossFight = true
    183 cameraManager:setRelCoorSoft("GameWorld-Camera", 0, 10, 0, 6)
     217Player:setCameraDist(100)
    184218
    185219return true
     
    195229if time > 25 then
    196230Ragnar02:setAI(false)
     231bossFight = false
    197232bossFightEnd = true
    198233end
     
    200235return bossFightEnd
    201236end
     237
     238function onNoxons(timestep)
     239
     240if bossFightEnd then
     241cameraManager:setCam("CameraTwo")
     242Player:pause(true)
     243end
     244
     245
     246return cutscene2End
     247end
Note: See TracChangeset for help on using the changeset viewer.