Hi,
I have a isShake listener and inside of it, I want it to set some booleans to true and false. It seems to not be working properly. Any help would be greatly appreciated.
true01 = true
true02 = true
true04 = false
true04 = false
timeOf_Shake
local function setBool (event)
if (event.isShake) then
true01 = false
true02 = false
true03 = true
true04 = true
timeOf_Shake = system.getTimer() + 2000
end
return true
end
Runtime:addEventListener (“accelerometer”, setBool)