add cinematic effect to "sinking feeling" intro sequence
authorsheepluva
Sat, 23 Jan 2016 09:05:37 +0100
changeset 11521 dc36fad455f4
parent 11520 663ecfb05df6
child 11522 17bd1c25670a
add cinematic effect to "sinking feeling" intro sequence
share/hedgewars/Data/Missions/Training/User_Mission_-_That_Sinking_Feeling.lua
--- a/share/hedgewars/Data/Missions/Training/User_Mission_-_That_Sinking_Feeling.lua	Sat Jan 23 08:11:14 2016 +0100
+++ b/share/hedgewars/Data/Missions/Training/User_Mission_-_That_Sinking_Feeling.lua	Sat Jan 23 09:05:37 2016 +0100
@@ -12,6 +12,7 @@
 local waterPix = 0
 local frig = 0
 local watGear = nil
+local cinematic = false
 
 -- allow skipping of the intro via hitting precise key
 function onPrecise()
@@ -68,6 +69,8 @@
 
 
 function onGameStart()
+    cinematic = true
+    SetCinematicMode(true)
 	SendHealthStatsOff()
 
 	ShowMission(loc("That Sinking Feeling"), loc("Challenge"), loc("Save as many hapless hogs as possible!"), 4, 1)
@@ -207,6 +210,11 @@
 	-- start the water rising when the intro is finished
 	if introStage == 110 then
 
+        if cinematic then
+            SetCinematicMode(false)
+            cinematic = false
+        end
+
 		waterCounter = waterCounter + 1
 		if (waterCounter == 100) and (waterPix < 1615) then
 			waterCounter = 0