Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: hoyoyo80 on January 20, 2019, 05:56:13 PM

Title: Anyway or Action to achieve Screen Shake?[SOLVED]
Post by: hoyoyo80 on January 20, 2019, 05:56:13 PM
Hi all,

Im trying to achieve classic camera shake upon impact but i dont know where to start.

Can someone point me in the right direction?

Thanks
Title: Re: Anyway or Action to achieve Screen Shake?
Post by: djaydino on January 20, 2019, 11:00:23 PM
Hi.
There is an action on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) called "Game Object Shake"

Maybe that will work for you :)
Title: Re: Anyway or Action to achieve Screen Shake?
Post by: jeanfabre on January 21, 2019, 02:41:47 AM
Hi,

 I strongly advise you to use Cinemachine for this, it has state of the art camera shake system, unbeatable really...

Bye,

 Jean
Title: Re: Anyway or Action to achieve Screen Shake?
Post by: hoyoyo80 on January 21, 2019, 05:33:28 AM
@djaydino, tried that but after using it as action the camera dont really shake a wont back to initial position.

@jean,will look into it. Does it support Playmaker directly or using Call Method?

Thanks
Title: Re: Anyway or Action to achieve Screen Shake?
Post by: ch1ky3n on January 21, 2019, 03:20:43 PM
@djaydino, tried that but after using it as action the camera dont really shake a wont back to initial position.

make sure you use "get object position" > your camera and save it to a vector3 variable : v3DefaultPosition

then after finishing the shake, set position > your camera > v3DefaultPosition. This will solve your problem
Title: Re: Anyway or Action to achieve Screen Shake?
Post by: jeanfabre on January 22, 2019, 01:04:43 AM
Hi,

 Cinemachine is supported via the Ecosystem, simply download the cinemachine package from there.

Bye,

 Jean
Title: Re: Anyway or Action to achieve Screen Shake?
Post by: hoyoyo80 on January 22, 2019, 11:25:58 PM
Thanks all, its work as intended using Gameo Object Shake.Im looking for a regular shake but Cinemachine look yummy! ill dive into that later.

Thanks