Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 28, 2007, 2:07:31 PM (18 years ago)
Author:
snellen
Message:

continued cutscene

File:
1 edited

Legend:

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

    r4574 r4575  
    3737thisscript:addObject("CameraMan", "cameraManager")
    3838thisscript:addObject("NPC", "shutleOne")
    39 thisscript:addObject("NPC", "fighterOne")
    40 thisscript:addObject("NPC", "fighterTwo")
    41 thisscript:addObject("NPC", "bomberOne")
    42 thisscript:addObject("NPC", "bomberTwo")
    4339thisscript:addObjectAsName("GameWorld", "Cut Scene", "gameWorld")
    4440
     
    5046bInit = 0
    5147bInit2 = 0
    52 fighterSpeed = 10
    53 bomberSpeed = 10
    54 
    55 -- Since the spaceships go along the x direction we only neet to get these once:
    56 fighterOneY = fighterOne:getAbsCoorY()
    57 fighterOneZ = fighterOne:getAbsCoorZ()
    58 
    59 fighterTwoY = fighterTwo:getAbsCoorY()
    60 fighterTwoZ = fighterTwo:getAbsCoorZ()
    61  
    62 bomberOneY = bomberOne:getAbsCoorY()
    63 bomberOneZ = bomberOne:getAbsCoorZ()
    64 
    65 bomberTwoY = bomberTwo:getAbsCoorY()
    66 bomberTwoZ = bomberTwo:getAbsCoorZ()
    6748
    6849
     
    7758  coorY = shutleOne:getAbsCoorY()
    7859  coorZ = shutleOne:getAbsCoorZ()
    79   shutleOne:setAbsCoor(coorX-6.5*timestep,coorY,coorZ)
     60  shutleOne:setAbsCoor(coorX-6*timestep,coorY,coorZ)
    8061 end
    8162 end
    8263
    8364 --}
    84 
    85 
    86 -- chaseScene
    87 chaseScene = { }
    88 --{
    89 
    90  function chaseScene:tick(timestep)
    91 
    92 
    93   fighterOneX = fighterOne:getAbsCoorX()
    94   fighterTwoX = fighterTwo:getAbsCoorX()
    95   bomberOneX  = bomberOne:getAbsCoorX()
    96   bomberTwoX  = bomberTwo:getAbsCoorX()
    97  
    98   fighterOne:setAbsCoor(fighterOneX + fighterSpeed*timestep,fighterOneY,fighterOneZ)
    99   fighterTwo:setAbsCoor(fighterTwoX + fighterSpeed*timestep,fighterTwoY,fighterTwoZ)
    100   bomberOne:setAbsCoor(bomberOneX + bomberSpeed*timestep,bomberOneY,bomberOneZ)
    101   bomberTwo:setAbsCoor(bomberTwoX + bomberSpeed*timestep,bomberTwoY,bomberTwoZ)
    102  
    103  
    104  end
    105 
    106  --}
    107 
    10865
    10966
     
    13491
    13592shutle:tick(timestep)
    136 chaseScene:tick(timestep)
    13793
    13894if bInit == 0 then
     
    149105if not cameraSwitched then
    150106cameraManager:setCam("CameraOne")
    151 --cameraManager:atachCurrCameraToWorldEntity("NPC", "fighterOne")
     107--cameraManager:atachCurrCameraToWorldEntity("NPC", "bomberOne")
    152108cameraManager:changeCurrTarget("Building", "zhara")
    153109cameraSwitched = true
Note: See TracChangeset for help on using the changeset viewer.