Movement & Slow-motion
V 1.0.2
Hi everyone!
As a few people have been asking for this, I'm proud to announce slow-motion is now part of the engine!
WHAT DO YOU EXACTLY MEAN BY SLOW MOTION?
I've been specifically requested for a "Superhot" style slow-mo. That means the player moves, everything moves.
The player speeds up, everything speeds up. The player slows down, everything slows down.
This can easily be edited to work as a 'switch' (if the player is still, everyone is still), or just a regular bullet time effect (player goes at his usual speed, everything else is slowed down) by changing a single (!) variable.
A single boolean enables/disables slow-mo for the entire project, but be wary, as you add more moving instances like bullets, effects, etc. you will need to make them slow down as well.
HOW DO I SLOW THINGS DOWN?
Slow-motion is actually really simple. You just need to multiply all your speed-related variables by a slow-motion rate variable, which can go from 0 to 1 (or above one if you want a sort of speed-up effect).
In this case, I'm setting this rate with a simple proportion: slow-motion rate equals player speed divided by player maximum speed. This way, results range from 0 (freeze) to 1 (regular speed).
There are comments in the code and a README file which explains how the engine works, if you have any doubts you can write me at mikecazzarolli@gmail.com or on Discord @RedKnight91.
Cheers!
Get Smooth Topdown Movement Engine
Smooth Topdown Movement Engine
Dynamic and elegant handling of movement and collisions, with slow-mo
Status | Released |
Category | Assets |
Author | RedKnight |
Tags | 2D, Action RPG, collisions, Game engine, Pixel Art, slow-motion, superhot, Top-Down |
Comments
Log in with itch.io to leave a comment.
Awesome, thanks for the update!