Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. shortid
    S

    shortid

    @shortid

    Chat Follow Unfollow
    0
    Reputation
    1
    Posts
    1298
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • 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 •