Good day fellow Defolders. I am having a bit of an issue and have exhausted the docs as well as the internet.
So here’s the rub…
When I call “set_time_step“ on my collection proxy from an input to pause the game/do a bullet time effect, it works only when “Build“ it, not when I “Build HTML5“.
Is there something that can be configured? or a specific way to impliment this to make it work for HTML5 Build?
i solved it, it was a if statement that created the mess.
for some reason the first one works with Build, but not HTML5
function on_input(self, action_id, action)
if action_id == hash("touch") then
self.focus = self.focus + 1
if self.focus == 120 then
focus()
msg.post("loader:/loader#loader", "focus")
end
end
This one works with both.
function on_input(self, action_id, action)
if action_id == hash("touch") then
self.focus = self.focus + 1
if self.focus > 120 then
focus()
msg.post("loader:/loader#loader", "focus")
end
end
Not sure why, but I’m happy to back to work! thank you for following up, much appreciated.
Well, its a 0 that increments by one. not sure what else there is to look at in regards to this Variable. I suppose I can dedicate a little time to learning about LuaJIT & Interpreter.