feat: add a waitFor qte Step

This commit is contained in:
Kazhnuz 2021-07-17 21:55:14 +02:00
parent d7a15d4d91
commit 627a7ea1e6
4 changed files with 21 additions and 1 deletions

View file

@ -19,7 +19,7 @@ return {
{"wait", "none", 0.3}, {"wait", "none", 0.3},
{"setAnimation", "none", "spin", false}, {"setAnimation", "none", "spin", false},
{'playSFX', "none", 'spinrelease'}, {'playSFX', "none", 'spinrelease'},
{"waitActorFinished", "none", "goTo"}, {"waitFor", "none", "actionFinished:playerMove"},
{"sendDamage", "none", 100, "basic", "none", false}, {"sendDamage", "none", 100, "basic", "none", false},
{'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false}, {'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},

View file

@ -11,6 +11,7 @@ return {
["jumpTo"] = {"origin", "x", "y", "duration", "blockProcess"}, ["jumpTo"] = {"origin", "x", "y", "duration", "blockProcess"},
["jumpBack"] = {"duration", "blockProcess"}, ["jumpBack"] = {"duration", "blockProcess"},
["waitActorFinished"] = {"waitFor"}, ["waitActorFinished"] = {"waitFor"},
["waitFor"] = {"waitFor"},
["addQTE"] = {"qteData", "origin", "blockProcess"}, ["addQTE"] = {"qteData", "origin", "blockProcess"},
["useItemEffect"] = {}, ["useItemEffect"] = {},
--[name] = {args}, --[name] = {args},

View file

@ -10,6 +10,7 @@ actions["playSFX"] = require(baseURI .. "playSFX")
actions["sendDamage"] = require(baseURI .. "sendDamage") actions["sendDamage"] = require(baseURI .. "sendDamage")
actions["setAnimation"] = require(baseURI .. "setAnimation") actions["setAnimation"] = require(baseURI .. "setAnimation")
actions["wait"] = require(baseURI .. "wait") actions["wait"] = require(baseURI .. "wait")
actions["waitFor"] = require(baseURI .. "waitFor")
actions["waitActorFinished"] = require(baseURI .. "waitActorFinished") actions["waitActorFinished"] = require(baseURI .. "waitActorFinished")
actions["useItemEffect"] = require(baseURI .. "useItemEffect") actions["useItemEffect"] = require(baseURI .. "useItemEffect")

View file

@ -0,0 +1,18 @@
local StepParent = require "scenes.battlesystem.controllers.fighters.systems.choregraphy.step.parent"
local WaitForStep = StepParent:extend()
function WaitForStep:new(controller, args)
WaitForStep.super.new(self, controller, args)
end
function WaitForStep:start()
end
function WaitForStep:update(dt)
print(self.arguments.waitFor)
if (self.choregraphy:checkCondition(self.arguments.waitFor)) then
self:finish()
end
end
return WaitForStep