Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/trunk/scripts/vertical_scroller/vs1.lua @ 4900

Last change on this file since 4900 was 4899, checked in by stefalie, 17 years ago

vertical scroller lvl

File size: 903 bytes
RevLine 
[4608]1-- Get objects from orxonox
2thisscript:addObject("SpaceShip", "Player")
3thisscript:addObject("CameraMan", "cameraManager")
[4899]4thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
[4694]5
[4899]6triggerFadeOut = SpaceTrigger()
7triggerFadeOut:setScript("vs1.lua")
8triggerFadeOut:setFunction("fadeOut")
9triggerFadeOut:setRadius(250)
10triggerFadeOut:setTarget("Player")
11triggerFadeOut:setAbsCoor(3610, 116, -656)
12triggerFadeOut:setDebugDraw(true)
[4722]13
[4899]14triggerEndLevel = TimeTrigger()
15triggerEndLevel:setScript("vs1.lua")
16triggerEndLevel:setFunction("changeLevel")
17triggerEndLevel:setDelay(5)
[4722]18
[4899]19teststring = "asdf";
[4722]20
[4899]21function fadeOut(timestep)
22  cameraManager:toggleFade()
23  print(teststring)
24  triggerEndLevel:start()
25  return true
[4608]26end
27
[4899]28function changeLevel(timestep)
29  print("changelvl now\n\n\n\n\n\n")
30  gameWorld:setNextStoryName("Moonstation")
31  gameWorld:stop()
32  return true
[4682]33end
Note: See TracBrowser for help on using the repository browser.