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
52
S
16
G
7
Posts: 795
Reputation: 12,830

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
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Previous

Return to How do I....?

Who is online

Users browsing this forum: TRMG and 30 guests