Edit of asset "ProCam2D for Godot 3.x" Accepted

Old/Current New/Edit
Title ProCam2D for Godot 3.x
Description ProCam2D Plugin

Overview

ProCam2D is the ultimate camera plugin for your 2D game needs. It offers precise control over camera behavior, featuring smooth movement, dynamic zoom, and exciting screen shake effects. ProCam2D adds two types of nodes to the scene tree: ProCam2D (the camera) and PCTrackPoint (point that will be tracked if ProCam.track_multiple_objects = true), as well as an Autoload script to control the camera efficiently.

Features

- Target-based tracking: Dynamic switching with smooth transitions.
- Screen shake effects: Multiple types, including horizontal, vertical, Perlin noise, random, zoom, rotate, and circular.
- Drag and rotation controls: Flexible drag types and smooth rotation.
- Zoom and boundary limits: Adjustable zoom with smooth transitions and boundary constraints.
- Multi-object tracking: Track multiple objects with adjustable radius.
- Efficient control: Managed by a singleton named ProCam.

Example Usage

# Change camera target
ProCam.target = $Player

# Soothly change camera target
ProCam.drag_smoothly = true
ProCam.target = $Player

#Start a screen shake effect
ProCam.start_shake([ProCam.SCREEN_SHAKE_HORIZONTAL], 0.5, 3.0, 20.0)

#Smoothly zoom in
ProCam.zoom_smoothly = true
ProCam.zoom_speed = 1.0
ProCam.zoom_level = 0.75

#Apply a random screen shake and zoom shake effect
var types = [ProCam.SCREEN_SHAKE_RANDOM, ProCam.SCREEN_SHAKE_ZOOM]
var duration = 0.5
var magnitude = 4.0
var speed = 25.0
ProCam.start_shake(types, duration, magnitude, speed)

#Enable rotation and set rotation speed
ProCam.rotate = true
ProCam.rotation_speed = 2.0

#Smoothly change the offset
ProCam.offset_smoothly = true
ProCam.offset = Vector2(50, 50)
ProCam.offset_speed = 0.5

#Zoom out when the player dies
func on_player_died():
ProCam.zoom_smoothly = true
ProCam.zoom_speed = 0.5
ProCam.zoom_level = 2.0

#Apply a horizontal screen shake effect during an earthquake
func on_earthquake():
var types = [ProCam.SCREEN_SHAKE_HORIZONTAL]
var duration = 1.0
var magnitude = 2.5
var speed = 15.0
ProCam.start_shake(types, duration, magnitude, speed)

More Information

For installation instructions and full documentation, a more recent release or to support the development of this plug-in, check out the repository on GitHub: https://github.com/daz-b-like/ProCam2D_Godot3.x
ProCam2D Plugin

Overview

ProCam2D is the ultimate camera plugin for your 2D game needs. It offers precise control over camera behavior, featuring smooth movement, dynamic zoom, and exciting screen shake effects. ProCam2D adds two types of nodes to the scene tree: ProCam2D (the camera) and PCTrackPoint (point that will be tracked if ProCam.track_multiple_objects = true), as well as an Autoload script to control the camera efficiently.

Features

- Target-based tracking: Dynamic switching with smooth transitions.
- Screen shake effects: Multiple types, including horizontal, vertical, Perlin noise, random, zoom, rotate, and circular.
- Drag and rotation controls: Flexible drag types and smooth rotation.
- Zoom and boundary limits: Adjustable zoom with smooth transitions and boundary constraints.
- Multi-object tracking: Track multiple objects with adjustable radius.
- Efficient control: Managed by a singleton named ProCam.

Example Usage

# Change camera target
ProCam.target = $Player

# Soothly change camera target
ProCam.drag_smoothly = true
ProCam.target = $Player

#Start a screen shake effect
ProCam.start_shake([ProCam.SCREEN_SHAKE_HORIZONTAL], 0.5, 3.0, 20.0)

#Smoothly zoom in
ProCam.zoom_smoothly = true
ProCam.zoom_speed = 1.0
ProCam.zoom_level = 0.75

#Apply a random screen shake and zoom shake effect
var types = [ProCam.SCREEN_SHAKE_RANDOM, ProCam.SCREEN_SHAKE_ZOOM]
var duration = 0.5
var magnitude = 4.0
var speed = 25.0
ProCam.start_shake(types, duration, magnitude, speed)

#Enable rotation and set rotation speed
ProCam.rotate = true
ProCam.rotation_speed = 2.0

#Smoothly change the offset
ProCam.offset_smoothly = true
ProCam.offset = Vector2(50, 50)
ProCam.offset_speed = 0.5

#Zoom out when the player dies
func on_player_died():
ProCam.zoom_smoothly = true
ProCam.zoom_speed = 0.5
ProCam.zoom_level = 2.0

#Apply a horizontal screen shake effect during an earthquake
func on_earthquake():
var types = [ProCam.SCREEN_SHAKE_HORIZONTAL]
var duration = 1.0
var magnitude = 2.5
var speed = 15.0
ProCam.start_shake(types, duration, magnitude, speed)

More Information

For installation instructions and full documentation, a more recent update or to simply support the development of this plug-in, check out the repository on GitHub: https://github.com/daz-b-like/ProCam2D_Godot3.x
Category 2D Tools
License MIT
Repository Provider GitHub
Repository Url https://github.com/daz-b-like/ProCam2D_Godot3.x
Issues Url https://github.com/daz-b-like/ProCam2D_Godot3.x/issues
Godot version Godot 3.5
Version String 0.2 0.2
Download Commit b4a7f9bd3d9d08aa058aca40683bbb763583b195 b4a7f9bd3d9d08aa058aca40683bbb763583b195
Download Url (Computed) https://github.com/daz-b-like/ProCam2D_Godot3.x/archive/b4a7f9bd3d9d08aa058aca40683bbb763583b195.zip https://github.com/daz-b-like/ProCam2D_Godot3.x/archive/b4a7f9bd3d9d08aa058aca40683bbb763583b195.zip
Icon Url https://i.ibb.co/PxPWf7g/icon.png
Preview Insert
Type image
Image/Video URL https://i.ibb.co/d6dsnVN/shot1.png
Thumbnail
Preview Insert
Type image
Image/Video URL https://i.ibb.co/bmtK0W7/shot2.png
Thumbnail
Preview Insert
Type image
Image/Video URL https://i.ibb.co/c3d6PGD/Screenshot-06-23-2024-08-11-27.png
Thumbnail