[Behaviour] Bound to layout Plus, Scroll To Plus

Post your completed addons to share with the community

Post » Thu Mar 08, 2018 2:00 pm

Hi @blackhornet first of all thanks for the great plugin.
It solved my "screen shake on the layout corner" problem effortlessly.

However I have another problem.
I want to shake the screen when player is firing the weapon and shake screen when there is an explosion. Shake magnitudes are different. Explosion has greater magnitude then firing a weapon.

When player is firing and there is an explosion at the same time, explosion shake stops and weapon shake starts. So I lose the bigger explosion. I tried to find a condition to check if shake is active but I coulnd't find it. Can you help me how can I resolve this?

Also another thing:
I tried to overcome this by using two sine waves to shake the player when firing. It kinda worked... The sprite, that has scroll to plus behaviour, is pinned to player so camera is following him and creates a screen shake. And I can use screen shake effect from scroll to plus behaviour.

However while player is at the corners of the layout, screen doesn't shake with him. Only the player does. I have 5 inset for scroll to and bound to layout behaviours. And screen shake on the behaviour workes nicely. Can this some how be worked around?

Any ways thanks again for the plugin. And any help would be appreciated.
Posts: 2
Reputation: 129

Post » Fri Mar 09, 2018 7:54 am

Try this:

I added the IsShaking and Magnitude expressions. You can testing is shaking is running and get the current magnitude, to see if it is bigger than the next shake value.
Posts: 3,842
Reputation: 154,886

Post » Fri Mar 09, 2018 9:50 pm

Thank you for your quick fix @blackhornet! It works great now.
Posts: 2
Reputation: 129


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests