diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-15 12:05:18 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-15 12:05:18 -0500 |
commit | d1235174157bd498d0c148325d7c8066e3ab6ac7 (patch) | |
tree | 1f086f5c07ebbf7721d0eb14bed6c86714164dbd /res/scripts/common.lua | |
parent | ce0628c5ad96e094db12a67d4e98b445fa873ad3 (diff) | |
download | tanetane-d1235174157bd498d0c148325d7c8066e3ab6ac7.tar.gz tanetane-d1235174157bd498d0c148325d7c8066e3ab6ac7.tar.bz2 tanetane-d1235174157bd498d0c148325d7c8066e3ab6ac7.zip |
Added camera shake to lightning event
Diffstat (limited to 'res/scripts/common.lua')
-rw-r--r-- | res/scripts/common.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/res/scripts/common.lua b/res/scripts/common.lua index 2197417..422d157 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua | |||
@@ -131,6 +131,14 @@ function WaitForMapFade() | |||
131 | end | 131 | end |
132 | end | 132 | end |
133 | 133 | ||
134 | function ShakeCamera(period) | ||
135 | effect():shakeCamera(period) | ||
136 | end | ||
137 | |||
138 | function StopShakingCamera() | ||
139 | effect():stopShakingCamera() | ||
140 | end | ||
141 | |||
134 | function SetPartyDirection(spriteId, direction) | 142 | function SetPartyDirection(spriteId, direction) |
135 | animation():setSpriteDirection(spriteId, direction) | 143 | animation():setSpriteDirection(spriteId, direction) |
136 | 144 | ||