This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I am making a multiplayer game and have been tinkering with interpolation. The code for the interpolation is a Frankenstein of tutorials and documentation and looks like global_transform = global_transform.interpolate_with(world_state_buffer[0]["P"], delta * 16) For some reason, it stops working when i press f5 and says Invalid get index 'P' (on base: 'Dictionary'). It works completely fine when I start the server and get two clients to join through the project manager. Can somebody please tell me how to fix this?

Godot version 3.5.1.stable
in Engine by (28 points)

How is that world_state_buffer created, and what's in it?

I have an array that stores 2 player states so I can lerp between them for hitscan stuff, but it does not look good when I interpolate between the two, so I just use the position key from the oldest part of the array (each of the two parts of the array are dictionaries) and interpolate that with the global transform

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.