Virtual Camera System

3,157
0
Publicado 2020-11-29
Time Taken - 6 Hours

~ Credits ~
@-KazRatch- for background art.

A project showing the power of some user-friendly set of custom blocks I made to imitate a camera. Included
in the project are 2 sprites, named:

‣ V.Cam Individual Scripts and
‣ V.Cam Camera Scripts

They include all the necessary custom blocks plus more for the system to work as intended. See inside to backpack them. Sadly, I couldn't implement a Z-axis. For me, it's simply too complicated to implement.

~ CONTENTS OF SYSTEM ~
‣ You can set and change X & Y coordinates for the camera and player separately.
‣ You can glide the camera and player to a specific set of X & Y coordinates!
‣ You can *smooth* glide the camera and player to a specific set of X & Y coordinates!
‣ You can create parallax with a custom parallax factor included in the position refresh block!

~ HOW TO USE SYSTEM ~
‣ For the "Individual X & Y" variables, treat them as the new X & Y positions of the sprites. Similarly, with the new "Camera X & Y" variables, treat them as the position of the stage.
‣ It is IMPORTANT to place the "Refresh Individual Position" block in an infinite loop into the sprites you want to be affected by the Virtual Camera System, otherwise the system won't work as intended.
‣ Comments attached to sprites inside project of how the system operates. See inside for more details.