Slideshow Lerp: How to Reposition Canvas On Start?

Get help using Construct 2

Post » Tue Jul 30, 2013 7:25 pm

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!NECROKRIEG2013-07-30 23:17:37
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Tue Jul 30, 2013 10:44 pm

Fixed!

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

B
10
S
4
Posts: 133
Reputation: 1,543

Post » Tue Jul 30, 2013 11:09 pm

Wow lmchucho! Your solution is so simple!
I had no idea you can deactivate a Group by pressing "Edit" > Ticking off "Active on Start"



Thank you very much!

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.

-AleXNECROKRIEG2013-07-30 23:11:34
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Tue Jul 30, 2013 11:56 pm

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.
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Wed Jul 31, 2013 12:19 am

My hat goes off to you sir!
B
15
S
6
G
3
Posts: 87
Reputation: 4,304


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests