playMaker

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

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Camera Shake / GameObject Shake
« on: March 25, 2015, 05: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, 09:04:24 AM by dudebxl »

4ppleseed

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

4ppleseed

  • Full Member
  • ***
  • Posts: 226
Re: Camera Shake / GameObject Shake
« Reply #2 on: April 01, 2015, 04: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
Re: Camera Shake / GameObject Shake
« Reply #3 on: April 01, 2015, 07: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: 226
Re: Camera Shake / GameObject Shake
« Reply #4 on: April 02, 2015, 07:44:35 AM »
Cheers dude, working great now  8)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Camera Shake / GameObject Shake
« Reply #5 on: April 02, 2015, 09: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
Re: Camera Shake / GameObject Shake
« Reply #6 on: April 02, 2015, 04:31:01 PM »
 ;)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Camera Shake / GameObject Shake
« Reply #7 on: April 13, 2015, 05: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: 555
    • Can't code? Who cares! Make games anyway!
Re: Camera Shake / GameObject Shake
« Reply #8 on: April 13, 2015, 08: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
Re: Camera Shake / GameObject Shake
« Reply #9 on: September 04, 2015, 01:44:10 AM »
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 04, 2015, 01:46:38 AM by Bqlqzs »

Padenlee

  • Junior Playmaker
  • **
  • Posts: 63
  • You can't hit what you don't shoot for!
Re: Camera Shake / GameObject Shake
« Reply #10 on: February 10, 2016, 12:40:03 AM »
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
Apple inc.'s first TV show, EP 1.
Game Dev since 2007
Coolest client: Bridgestone

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Camera Shake / GameObject Shake
« Reply #11 on: February 12, 2016, 05: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
Re: Camera Shake / GameObject Shake
« Reply #12 on: April 08, 2016, 07: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
Re: Camera Shake / GameObject Shake
« Reply #13 on: August 20, 2016, 09:02:29 AM »
*** update bump

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

adami

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