Search found 6 matches
- Sun Jul 23, 2017 7:21 pm
- Forum: Libraries and Tools
- Topic: timetraveler.lua - A rewind module for LÖVE
- Replies: 9
- Views: 6815
Re: timetraveler.lua - A rewind module for LÖVE
Done thanks for the feedback and help!
- Fri Jul 21, 2017 10:16 pm
- Forum: Libraries and Tools
- Topic: timetraveler.lua - A rewind module for LÖVE
- Replies: 9
- Views: 6815
Re: timetraveler.lua - A rewind module for LÖVE
Ok, I improved the module. Now you have a fps option. if you set fixedStep to false (that now by default is true because I mainly use Defold as engine :awesome: ), through this option you can set how many frames per second record (by default 60). It should solve the variable time-steps problem... or...
- Fri Jul 21, 2017 8:33 pm
- Forum: Libraries and Tools
- Topic: timetraveler.lua - A rewind module for LÖVE
- Replies: 9
- Views: 6815
Re: timetraveler.lua - A rewind module for LÖVE
oh yes, I know exactly what you mean. I had the same logic thought. That's why I wrote initial support and asked for ideas .. and yes thanks for the feedback, I will add the break line to the code!
About the interpolation, I will work on it..
About the interpolation, I will work on it..
- Fri Jul 21, 2017 5:18 pm
- Forum: Libraries and Tools
- Topic: timetraveler.lua - A rewind module for LÖVE
- Replies: 9
- Views: 6815
Re: timetraveler.lua - A rewind module for LÖVE
I see... I updated the module and added an initial support for variable time-steps. By default fixedStep is false so, until people set it to true, the module will use timestamps. But I am still not satisfied. I mean, I tested it with LOVE with vsync off and it works, the rewind speed is constant... ...
- Fri Jul 21, 2017 5:53 am
- Forum: Libraries and Tools
- Topic: timetraveler.lua - A rewind module for LÖVE
- Replies: 9
- Views: 6815
Re: timetraveler.lua - A rewind module for LÖVE
I looked at the code, and i see that you only use dt in the record function to decide whether or not the beginning of the stored data should be trimmed to limit the interval one can rewind back. You could remove the argument from the other function since it's not used. This is a good way of handlin...
- Fri Jul 21, 2017 1:45 am
- Forum: Libraries and Tools
- Topic: timetraveler.lua - A rewind module for LÖVE
- Replies: 9
- Views: 6815
timetraveler.lua - A rewind module for LÖVE
Hello all, I am new here, I usually use Defold... but as I wrote a Lua module that might be useful to other people using different Lua game engines, here I am. This module essentially implements the rewind mechanic you can find in games like Braid. Have a look, it is under MIT license so do whatever...