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
45
S
15
G
6
Posts: 795
Reputation: 11,935

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
51
S
13
G
7
Posts: 929
Reputation: 8,405

Previous

Return to How do I....?

Who is online

Users browsing this forum: Bad Wolf, davides, NRABrazil, Vallar, WhosWho and 32 guests