Skip to content

Does this library have rewinding back in time on server to check if player did hit server side enemy (pve)? #193

Closed Answered by elementbound
xand00 asked this question in Q&A
Discussion options

You must be logged in to vote

Originally I figured that Godot's MultiplayerSynchronizer should be fine for this kind of thing, since the server is the authority, and the node will just broadcast the state. The difficulty with that is that the MultiplayerSynchronizer is not tied to netfox's tick loop, and does not do interpolation either. I'm still considering what would be the best way to handle this, but for now I have a class that I'll add to netfox in the coming weeks.

I'm already using it in my own game to test it, so I can share here:
EDIT: The node below is available from netfox v1.3.0 and higher, you can grab that instead of copy-pasting the code.

StateSynchronizer

extends Node
class_name StateSynchronizer

#

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@xand00
Comment options

@elementbound
Comment options

Answer selected by xand00
@xand00
Comment options

@xand00
Comment options

@elementbound
Comment options

@xand00
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants