In this tutorial we will build a simple camera shake feature and trigger it when the player or enemies take damage.
Topics Covered: Camera Shake, Autoload, Global Function
New Assets Needed:
N/A
Asset Download Page: https://michaelgames.itch.io/2d-actio...
GitHub Repo: https://github.com/michaelmalaska/aar...
Discord: / discord
--------------------
Chapters
--------------------
0:00 Intro
0:27 Overview
1:14 Camera & shake script
5:50 add_camera_shake() function
6:09 _physics_process() function
8:22 shake() function
11:16 Camera shake variables in inspector
11:39 PlayerManager global script updates
13:30 Connect camera_shook signal in camera script
14:03 Test using player script input
16:30 Implement camera shake in damage situations
20:49 Recap & outro
--------------------
Series Playlist: • Make a 2D Action & Adventure RPG in Godot ...