Any way to simulate scroll-to "shake"?

Get help using Construct 2

Post » Tue Jun 26, 2012 7:41 pm

o.o people use flickr for construct2 0.0 keep going people nice idea :P
B
49
S
15
G
6
Posts: 795
Reputation: 12,105

Post » Fri Apr 08, 2016 10:23 pm

I'm looking into this, I have custom scrolling, and I tried the Shift effect and my own custom... I don't like how it looks.. I need something that will "reduce in magnitude" with some sort of easing like a lerp or something...

Currently I have:

Set ShakeAmount to ShakeCountdown * (MaxShakeAmount / ShakeDuration)

ScrollTo position lerp(scrollx,sprite.X + (random(ShakeAmount+(ShakeAmount*2),ShakeAmount)),0.05) //and do the same for Y


sorry I know this is an old thread, just wondered if anyone ever figured a good way with custom scrolling...
B
66
S
19
G
8
Posts: 984
Reputation: 10,015

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests