Hello again, I have two questions this time!
-
We are starting to get into music for our game, what I’m asking is what is the “norm” or “average” length of songs and formats you guys use? Ex. I am in my dungeon is the song on a 5 or 15 or 30 sec loops? The starting app screen have maybe a 30sec loop? I’m already pushing hard for 30fps and I’ve heard music is rough on performance and I would not like to cheap out on this part.
-
I have this “whirlpool or geyser” thing that turns on and off, the code itself is fine but the timer itself seems to jitter or get weird over time where I would like it to turn on every 5 seconds and after it turns off 2 seconds later something very simple. But after some time it will start spamming every milliseconds and go nuts or speed up and change times etc.
game.geyserTimer_1 = timer.performWithDelay(5000, function() game.geyser_1.isBodyActive = true; game.geyser_1:setSequence(“geyser”); game.geyser_1:play(); end, -1) game.geyserTimer_1 = timer.performWithDelay(7000, function() game.geyser_1.isBodyActive = false; game.geyser_1:setSequence(“geyserOff”); game.geyser_1:play(); end, -1)
I tried infinite loop and it also gives weird behaviours, I tried doing stuff like os.time(5000) inside the timers instead, etc.
Thanks for your time and input, all advice is greatly appreciated!