1. Hey! Guest! The 33rd GMC Jam will take place between May 23rd, 12:00 UTC (Friday noon) and May 27th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

Asset - Extension scroll_snap

Discussion in 'Marketplace' started by csanyk, Jul 1, 2016.

  1. csanyk

    csanyk Member

    Joined:
    Jun 20, 2016
    Posts:
    819
    Scroll_snap is an extension that enables you to "scroll" through a larger room by "snapping" the view, screen-by-screen. You can use this effect to simulate a game with multiple single-screen pseudo "rooms" where moving over the edge of the current or "screen" takes you to the next "screen".

    A neat side-effect of using this technique is, it can allow you to keep active instances running off-screen. If you were to create a separate room asset for each screen of game world, only the current room could have active instances running in it. I also provide a function that will allow you to deactivate instances that are outside the current view, and reactivate them when you enter into the region where they are back in view.

    Early console games such as Pitfall!, Superman, and Adventure for the Atari 2600 weren't capable of smooth scrolling, so used a similar approach to take the player to a new room when they exited the side of the screen.

    Full documentation is at https://goo.gl/cCrwmF

    https://marketplace.yoyogames.com/assets/1865/scrollsnap

    Please review it if you give it a try!
     
    Last edited: Jul 6, 2016

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice