top of page

C# Scripts

Here's all my scripts that I've made public for unity projects.

Dynamic Camera

NewwLogo.jpg

Timescale Trigger

TeleportWP.jpg

Teleport Script

MORE COMING SOON!

Dynamic Camera Script

2D Dynamic Camera Follow Script

The 2D Dynamic Camera Follow script is a powerful tool for creating dynamic and engaging camera movements in your 2D Unity project. This script allows you to create a camera that smoothly follows one or multiple objects, with customizable boundary settings and zoom levels. Imagine crafting cinematic camera movements, dramatic close-ups, or dynamic chase sequences with ease. Use the Dynamic Camera Follow script to create stunning camera movements and enhance the visual appeal of your game. 

Responsive Zooming:

Set the zoom speed for a more gradual or immediate zooming effect, tailoring it to your gameplay style.

Smooth Movement:

Adjust the smoothness value for a visually pleasing camera transition, balancing responsiveness with a polished look.

Customizable Boundaries:

Define a specific area within the scene where the camera can move, preventing it from going beyond your intended gameplay space

Dynamic Zoom:

Control the minimum and maximum zoom levels, enabling you to zoom in for close-up action or zoom out to encompass larger environments with multiple targets.

Camera Offset:

Fine-tune the camera's position relative to the target objects, allowing for off-center placements or creative framing.

Key Features:

Multiple Target Support:

Assign one or more objects for the camera to follow, ensuring your view stays focused on the action.

The 2D Dynamic Camera Follow script provides a comprehensive solution for crafting exceptional camera behavior in your 2D Unity projects. Effortlessly achieve smooth camera movements that seamlessly track your game objects.

Timescale Trigger Script

Timescale Trigger Script

A Powerful tool for creating dynamic time-based effects in your 2D Unity project. This script lets you designate zones that alter the game's speed upon entering or exiting them. Imagine crafting slow motion zones for dramatic moments, fast-paced sections for intense battles, or even slowing down the action for strategic decision-making.

Imagine crafting bullet-time effects for intense combat encounters, fast-paced zones for time-based challenges, or slow-motion sequences for dramatic moments. The 2D Timescale Trigger script unlocks a wide range of possibilities to manipulate time within your 2D Unity project and elevate your gameplay design.

Key Features:

Customizable Timescale:

Adjust the timescale within the zone, enabling you to slow it down (e.g., 0.5x), speed it up (e.g., 2x), or create unique in-between effects.

Selective Activation:

Define specific tags (e.g., "Player") that can trigger the zone, ensuring only intended interactions affect the timescale.

Audio Source Pitch Adjustment:

Integrate seamlessly with background music or other audio sources by automatically adjusting their pitch based on the modified timescale, creating a cohesive audio experience.

Smooth Transitions:

Fine-tune the transition time to seamlessly change the timescale as players enter or exit the zone, preventing jarring jumps in speed.

Sound Effects (Optional):

Enhance the zone activation with an impactful sound effect.

Reset on Exit:

Optionally reset the timescale to normal when players leave the zone, ensuring a consistent gameplay pace outside the designated area.

Teleport Script

Teleport Script for 2D

The 2D Teleporter script is a versatile tool for adding seamless teleportation mechanics to your 2D Unity project. Unleash creative level design possibilities with this script, allowing players or objects to instantly transport between designated locations.

Imagine crafting intricate teleportation puzzles, hidden warp points for secret areas, or strategic one-way teleports for unique level design. The 2D Teleporter script empowers you to effortlessly integrate teleportation mechanics into your 2D Unity project and elevate your gameplay experience.

Key Features:

Multiple Teleport Targets:

Define various locations for teleportation, enabling you to create intricate teleportation networks or randomize the destination for a surprise.

Selective Activation:

Restrict teleportation to specific objects by assigning valid tags, ensuring only intended interactions trigger teleportation.

One-Time Use (Optional):

Set the teleporter for a single activation, adding a strategic element to your gameplay and visually indicating its spent state through a fade-out effect.

Selective Aactivation:

Restrict teleportation to specific objects by assigning valid tags, ensuring only intended interactions trigger teleportation.

Sound Effects:

Enhance the teleportation experience with an optional sound effect. Adjust the volume and leverage the teleport delay to create a cool pitch shift for added immersion.

Customizable Delay:

Fine-tune the teleportation delay to build anticipation or create a more instantaneous effect.

bottom of page