Hi, i was wondering if replaying the death of a player about 1 second before was possible at all?
Basically Like this xD [youtube]https://www.youtube.com/watch?v=4EV2Xf1ws0w[/youtube]
"Killcam" like feature?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: "Killcam" like feature?
Of course its possible, you write the game. You just need to do it. This is entirely up to the programmer.lelSkrub wrote:Hi, i was wondering if replaying the death of a player about 1 second before was possible at all?
Basically Like this xD [youtube]https://www.youtube.com/watch?v=4EV2Xf1ws0w[/youtube]
Every damn "Can löve be used to...?" question I have seen asked boils down to "yes, you can. Whether it's a good idea is another question, as is how"
In this case the two other answers are "Might be" and "save the last second somehow"
Re: "Killcam" like feature?
For future reference, For the youtube tag to work you give it the ID of the video not the URL.
https://www.youtube.com/watch?v=4EV2Xf1ws0w
Re: "Killcam" like feature?
To answer your question, yes it is possible. You need to store information such as player coordinates and other variables and then when the player dies you use this information to recreate the death again.
Re: "Killcam" like feature?
I think something like using games state as immutable object would help long way. Just creating new table every time you need to change the state, although this might cause some performance / memory issues. Then just keeping a stack of old states and playing through the stack for replay.
The memory issue could probably be covered partially by using circular queues, but varying fps might cause some oddities to lenght needed for the circular queue.
The memory issue could probably be covered partially by using circular queues, but varying fps might cause some oddities to lenght needed for the circular queue.
Re: "Killcam" like feature?
Thanks. Lol maybe it is a little advance for me to try atm.
And sorry about the youtube video! that was one of my first posts, I am still learning the etiquitte
And sorry about the youtube video! that was one of my first posts, I am still learning the etiquitte
Who is online
Users browsing this forum: Google [Bot], Semrush [Bot] and 1 guest