playMaker

Author Topic: Anyway or Action to achieve Screen Shake?[SOLVED]  (Read 2160 times)

hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Anyway or Action to achieve Screen Shake?[SOLVED]
« on: January 20, 2019, 07: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
« Last Edit: January 23, 2019, 02:18:14 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Anyway or Action to achieve Screen Shake?
« Reply #1 on: January 21, 2019, 01:00:23 AM »
Hi.
There is an action on the Ecosystem called "Game Object Shake"

Maybe that will work for you :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Anyway or Action to achieve Screen Shake?
« Reply #2 on: January 21, 2019, 04: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

hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Re: Anyway or Action to achieve Screen Shake?
« Reply #3 on: January 21, 2019, 07: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

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: Anyway or Action to achieve Screen Shake?
« Reply #4 on: January 21, 2019, 05: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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Anyway or Action to achieve Screen Shake?
« Reply #5 on: January 22, 2019, 03:04:43 AM »
Hi,

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

Bye,

 Jean

hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Re: Anyway or Action to achieve Screen Shake?
« Reply #6 on: January 23, 2019, 01:25:58 AM »
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