Jump to content

How to slow down the rate of state of scene change


rebus
 Share

Recommended Posts

(Phaser3)We are creating an application which renders the same scene with DIFFERENT location of same assets everytime a button is clicked.
We want to slow down the rate at which the state of scene changes.
We do not have a physics attribute in our config
We did try referring to phaser3 examples and use fps, timeScale, timedEvent but we were not able to achieve what we wanted.

The scene:
The scene is pretty similar to ‘chess game’.
Scene has a 9*8 grid.
Scene has an image asset at one of the grid(be position 1,1)
Once user presses ‘next’ the grid is created and displayed again with the asset image on a different location
Essentially the image asset moves to 2,1 from 1,1
The movement is not a move function within the scene rather a whole different grid is rendered with the image on 2,1

The rendering of grid, every time ‘next’ button is clicked is very fast. I would like the rendering to slow down so the rendering looks like a smooth movement.
An example is shown below. (Image clipped from chess.com)
state1: https://ibb.co/DYt0Dts
state2: https:/ibb.co/WgPPNbW

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...