Slideshow Lerp: How to Reposition Canvas On Start?

0 favourites
  • 5 posts
From the Asset Store
Pixel Destruction like in "Worms" (Drawing Canvas based)
  • With some help I created a slideshow using Lerp, clamp & Dt expressions.

    The slideshow scrolls from slide to slide when you press a Date Button.

    I want the Slideshow to start from the Middle of the canvas (1963 button) so you could hypothetically choose to scroll left, right or down to another slide.

    I tried implementing a Position Junp to '1963':

    Sys > on start of layout > Scroll X 2728, Y 255.

    This works ONLY when I disable the lerp Slide Scrolling. This means when a button is pressed the Slideshow won't scroll from slide to slide.

    I also tried to use a Lerp function to specifically jump to the above X,Y position at the start of layout but this would also interfere with the Slide Scrolling. I'm not sure how to integrate the Position Jump with Slide Scrolling without one of them breaking.

    Capx: failed solution :(

    Demo of Slideshow scrolling

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Fixed!

    copy.com/s/xiIEbMPDL1mm/Slideshiow-Lerp-Scroll-Fixed.capx

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Wow lmchucho! Your solution is so simple!

    I had no idea you can deactivate a Group by pressing "Edit" > Ticking off "Active on Start"

    <img src="https://dl.dropboxusercontent.com/u/20299415/capx-forum/Pictures/Deactivate-Group.png" border="0" />

    Thank you very much! <img src="smileys/smiley17.gif" border="0" align="middle" />

    This is a good trick. I'am in the process of collecting helpful posts full of tricks and tips on Expressions. I will add this to it and post the list to the forum.

    -AleX

  • I didnt know either. I remembered you could do that in Multimedia Fusion 2 so i checked if you could do the same in Construct 2 and... Yes! you can. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • My hat goes off to you sir!

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