Thursday, November 28, 2024

Micro Tutorial: Time Control


         This is a small script that I have in my games mostly to make it easier to catch screenshots and cinematics for advertising. It's very simple and incredibly useful. Time moving as normal is at a scale of 1, anything less is slower and anything higher is faster. I've tied the time controls to the Q and E keys using On Keyboard Input blocks to make it easier to capturing during actual play.

    Notice how the Action part of the Input block is set to Down. This means that the block will fire once the key is depressed. If I wanted a little less control and a little more ease of use, I could have had the second block also set to the Q key and the Action set as Up. This would have slowed down time when Q was pressed and the sped it right back up if I let go of the key. 

    I separated the keys so I could stop and make screenshots while in slow motion, but you could easily keep it on one key if you wanted to do something like slow down time when the player aims down their sights. You could even tie it to the same key as aim without any issues. It's a great block, and people should abuse it to recreate 2000s movie choreography. 

    Thanks for reading. If you want more maybe buy the game this script came from or just throw me something on Ko-Fi and I can justify making some more Visual Script write ups. I have a lot of other half-baked scripts to share.


 

 

 

 

No comments:

Post a Comment