360 Panorama

0 favourites
  • 2 posts
From the Asset Store
JPEG format 364x HD backgrounds in 2688 x 1536 Resolution
  • So I've been looking into making a scrollable panoramic background for a project a friend and I are doing for a potential client, I'm new to the program so my mind hasn't completely been assimilated into its structure yet.

    I've implemented the touch features Abhishan detailed in his post 'Swipe based Smooth Scrolling with Inertia' and that's all swell but now I need to make the background endlessly scroll in either direction when I swipe.

    Nealian's Compan360 is a good example of what I'm trying to achieve.

    Any help would be much appreciated.

    Cheers,

    Infinitygred

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • There's 2 approaches you can try. One is to create 3 copies of your background. As you swipe you move all 3 left or right. As the first one goes off the main screen, the second slides in. And the one on the far side moves to the other side. So you are always moving the one that is off screen over to the other end to fake the panoramic look.

    The other solution is there's a plugin called "sprite sheet" that allows you to animate the offset of a tiled background object.

    You'd have to tweak the "sliding with inertia" code a bit and point it at offsetting the offset.x value instead of the positional value, but it should work. It will give you an endless panorama bg.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)