Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. shortid
S

shortid

@shortid

Chat Follow Unfollow
0
Reputation
1
Posts
1.3k
Profile views
0
Followers
0
Following
Joined 28 Mar 2018, 10:01 Last Online 1 Apr 2018, 12:55

  • Profile
  • More
    • Continue chat with shortid
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
shortid Follow

Posts made by shortid

Lag compansation example using @gamestdio/timeline in client

Hey everyone!

I'm just experimenting with the framework and have implemented a simple example which moves an object to a random point on the screen.

onInit(options) {
    // set state
    // ...

    this.useTimeline();
    this.setSimulationInterval(() => this.tick(), 1000/30);
}

My question is how i can use the Timeline class in client to interpolate the object movement?
In other words how can i use the timeline snapshots from server in the client?

cheers!

posted in Questions & Help • 28 Mar 2018, 15:49

© 2023 Endel Dreyer