playMaker

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

hoyoyo80

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Anyway or Action to achieve Screen Shake?[SOLVED]
« 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
« Last Edit: January 23, 2019, 12:18:14 AM by jeanfabre »

djaydino

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

Maybe that will work for you :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14689
  • Official Playmaker Support
    • View Profile
Re: Anyway or Action to achieve Screen Shake?
« Reply #2 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

hoyoyo80

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Anyway or Action to achieve Screen Shake?
« Reply #3 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

ch1ky3n

  • Junior Playmaker
  • **
  • Posts: 80
    • View Profile
Re: Anyway or Action to achieve Screen Shake?
« Reply #4 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

jeanfabre

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

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

Bye,

 Jean

hoyoyo80

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Anyway or Action to achieve Screen Shake?
« Reply #6 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