ltsLumina / FG-GP-Team1

Futuregames Malmö, Game Project 1 - PLORA
0 stars 0 forks source link

adding screenshake effect #50

Closed Liighht closed 1 week ago

Liighht commented 1 week ago

i added a ScreenShakeScript with adjustable power and shake cooldown. modified rock prefab to invoke shakes

To make it work the Virtual Camera from cinemachine needs "Cinemachiune Impulse Listener" dont change any settings. Then add ScreenShakeScript to a component as well as "Cinemachine Impulse Source"

the script right now invokes shake when colliding with Train and Player, player collision invokes it with 0.3 strength.

Since our camera isnt a prefab and i dont want to modify the scenes to not mess up anybodys work remember that virtual camera need impulse listener <3