How do I have multiple screenshake effects at once?

Get help using Construct 2

Post » Thu Jul 27, 2017 11:02 am

When the player shoots his gun the screen shakes with a magnitude of 1 for 0.1 seconds. When an enemy gets destroyed it spawns an explosion that shakes the screen with a magnitude of 15 for 0.5 seconds.

Problem is that if the player continues to shoot when the enemy gets destroyed, the bullet screen shake (magnitude 1 for 0.1 seconds) overrides the explosion screenshake, making the explosion screenshake barely noticeable.

Is there a fix to this or do I have to do a work-around?

Thanks.
B
9
S
1
Posts: 26
Reputation: 731

Post » Fri Jul 28, 2017 2:14 am

You could cool the bullet shake when the enemy shake is happening. Stop the bullet shake when the enemy shake is going on and restart it when it stops. However I'm not sure how a mag of 1 can override a mag of 15.

Sorry if I'm not understanding.
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
41
S
20
G
6
Posts: 367
Reputation: 7,541


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 11 guests