Exotic Cocrea: https://cocrea.world/@Exotic
What does WitCat’s FPS Extension do?
WitCat’s FPS Extension can detect the stage’s frame rate, the web frame rate, and smooth out frame rate. This can be useful when creating games with Gandi Simple MMO to even out the players lag with the game, or can be used to change your games frame rate.
Getting started
To fully understand how to successfully incorporate WitCat’s FPS Extension to your game to make your players experience better, start off by installing WitCat’s FPS Extension
🐱 Stage
Stage blocks consist of 3 useful blocks:
The first two blocks, “stage FPS” and “stage current FPS” can both be toggled on and off to show onstage like variables and be used to compare with operator blocks.
The “enable stage FPS detection” block can be used to disable or enable detection of the stage FPS. We can run the code below to disable the detection.
We can now see the “stage FPS” block at 0 frames and we can see “stage current FPS” block stop moving and only shows 1 number. Don’t worry the project has not been broken, but FPS detection has been turned off, to revert this we can just run the same code but instead of “disable” we switch it to “enable” so stage FPS is shown.
🖥️ Web
The web blocks are made up of 3 more useful blocks:
The first 2 blocks “web FPS” and “web current FPS” can be shown onstage like variables and be compared with operator blocks.
However these are different than stage FPS blocks, web FPS is your browser’s frame rate, everyone’s frame rate is different than others which makes this block useful to compare your frame rate or the users frame rate with what the stage is running at.
Likewise same as the “web FPS detection” block, this block disables or enables the web frame rate detection.
This block enables/disables both “web FPS” and “web current FPS” blocks all together. Whenever we disable web FPS detection, we can see that they turn 0.
👀 More
More has 1 singular block.
This block may seem redundant at first but its meaning can help out with MMO games and smoothing FPS out.
There are two players in an MMO game, the first player is at 30 FPS and the second player is at 120FPS. If they move 5 steps at the same time, player 2 will be faster. To fix this, i can use this block to ensure the two players move at the same speed relative to their FPS.
The yellow part represents my desired speed and the green part represents my FPS.
📚End
Thank you for reading this doc to expand your Gandi IDE extension knowledge to make your creativity a possibility!