Manual Screen shake

Get help using Construct 2

Post » Tue Jun 26, 2012 6:22 am

I need to be able to create a screen shake effect just like the behavior plugin.
I can't use the behavior plugin since you cant deactivate its main functions. I have no clue were to start have searched all the forums current posts on this subject but have had no luck.

This is my Camera settings to shake.

Every Tick > Sroll to position > X: PlayerBox.X
                        Y: lerp(PlayerBox.Y - WindowHeight /6.0, ScrollY, 0.5)
Layout size: 1.5

please help

I want the entire screen to shake, not one object..

Erndog2k2012-06-26 06:37:35
B
27
S
11
G
1
Posts: 246
Reputation: 5,048

Post » Tue Jun 26, 2012 6:35 am

I had the same problem not long ago.
I solved it by adding the sine behavior to the object and made it very fast so it looked like a shake. The sine behavior can be activated via event, so it's very useful for this =)
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Post » Tue Jun 26, 2012 6:41 am

[QUOTE=Sargas] I had the same problem not long ago.
I solved it by adding the sine behavior to the object and made it very fast so it looked like a shake. The sine behavior can be activated via event, so it's very useful for this =)[/QUOTE]
well it works just one problem if the camera isn't locked on the player, like if your all the way at the left edge it wont work.
Edit
got it I think. it's not to good tho especially in slo mo?
Edit2
Yeah if im jumping backwards in slo mo and sine waving it looks bad. I just need the actual screen to shake.Erndog2k2012-06-26 07:11:40
B
27
S
11
G
1
Posts: 246
Reputation: 5,048

Post » Tue Jun 26, 2012 8:06 am

I haven't tried, but I found this thread. Maybe Yann's solution works?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jun 26, 2012 5:29 pm

[QUOTE=Nimtrix] I haven't tried, but I found this thread. Maybe Yann's solution works?[/QUOTE]

Nice I searched every forum I didn't ever see that one nice find thx
B
27
S
11
G
1
Posts: 246
Reputation: 5,048


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, farfetchd83, mjj1990, Yahoo [Bot] and 3 guests