playMaker

Author Topic: Camera Shake / GameObject Shake  (Read 6805 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Camera Shake / GameObject Shake
« on: March 25, 2015, 02:50:11 PM »
Camera shake action (GameObject shake action) on Ecosystem

Originally build as a camera shake action but will shake any gameobject (canvas, cube, light, etc). This is an alternative to Itween (or any other tween) shake.

Includes interpolation (lerp): Quadratic, EaseIn, deltaTime, etc... + Full control of speed, rotation, intensity, etc..

Play around with the settings, it can be very a subtle shake to a really crazy wild shake..

hint: If interpolation is off, use very low numbers such as 0,02 for subtle shake on camera. Extremely sensitive in that setting...

Update: all actions + updates are on ecosystem or https://snipt.net/dudebxl/

Could not find a similar free action without a tween and I need a camera shake, so I hope it helps...

Updated for PM 1.8
update: General bugs + Set camera rendering to lateUpdate.
new 2d camera/gameobject shake action + spelling mistake in action[/i]
update (v1.2): 2d action -corrected bug: z axis is reset to 0 on shake.
update (v1.1): 3 new interpolation + curve
« Last Edit: August 20, 2016, 06:04:24 AM by dudebxl »

4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #1 on: March 26, 2015, 05:45:37 AM »
Awesome, thanks.

4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #2 on: April 01, 2015, 01:54:56 PM »
Can you add an option not to shake the Z axis? This shake is great but it's really messing with my 2D games  ;D

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #3 on: April 01, 2015, 04:20:04 PM »
Hi,

Done and attached - see above. Did a quick test on a cube and it did not move on the Z-axis. Any problems pm me.. 

 ;)

4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #4 on: April 02, 2015, 04:44:35 AM »
Cheers dude, working great now  8)

sebaslive

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Frame Tale Studios
Re: Camera Shake / GameObject Shake
« Reply #5 on: April 02, 2015, 06:02:03 AM »
You are making new actions left and right, haha. thanks for sharing!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #6 on: April 02, 2015, 01:31:01 PM »
 ;)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #7 on: April 13, 2015, 02:45:11 PM »
Corrected a bug on 'Camera Shake 2D' action. Z axe is now unaffected by shake  - Bug: z axis is reset to 0 on shake.

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Camera Shake / GameObject Shake
« Reply #8 on: April 13, 2015, 05:44:18 PM »
Thank you! :)
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Bqlqzs

  • Junior Playmaker
  • **
  • Posts: 52
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #9 on: September 03, 2015, 10:44:10 PM »
Thank you for the actions.

Actually the shake is intensify with the time.

EDIT:
Between I found, just need to set Interpolation Off and 0 Speed
« Last Edit: September 03, 2015, 10:46:38 PM by Bqlqzs »

Padenlee

  • Playmaker Newbie
  • *
  • Posts: 23
  • You can't hit what you don't shoot for!
    • View Profile
    • Personal Site
Re: Camera Shake / GameObject Shake
« Reply #10 on: February 09, 2016, 10:40:03 PM »
Just downloaded the Game Object Shake action from Eco and nothing I do makes the action work. I've been using Playmaker for 4 years.

Any thoughts? :)
-Paden Pierry
@padenpierry

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #11 on: February 12, 2016, 03:53:04 AM »
weird.. it should work... Try a new empty scene and put the action onto a cube and play around with the settings of the action. If nothing happens then let me know.

topscore1632

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #12 on: April 08, 2016, 04:36:33 AM »
Hi,

I've also found this to no longer work with Playmaker 1.8. Rolling back to 1.7.8 and it works fine.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #13 on: August 20, 2016, 06:02:29 AM »
*** update bump

Action corrected for PM 1.8
« Last Edit: September 06, 2016, 08:15:19 AM by dudebxl »

adami

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: Camera Shake / GameObject Shake
« Reply #14 on: August 03, 2018, 11:56:30 PM »
Can anyone confirm if this still works for 1.9? I really would appreciate being able to use this :O