immowhe.blogg.se

Mtasa checkpoint system
Mtasa checkpoint system








It will probably look like that: using UnityEngine You will also need to create a custom script and attach it to your new game object. As usual, add your animation controller and your three animations (non-activated, activating, activated for instance).

mtasa checkpoint system

You may want to play an animation when the player goes through it : the flag goes up, the life stone shines, etc. The collider needs to be set to trigger of course, so your player can pass through it. Do not: what if a player jumps above it? Or ducks underneath it? Unless it is part of your gameplay, make sure to make it so large that it can’t be avoided as the player progresses through the level. It is tempting to make it match its graphic renderer. You probably want to make it visible somehow (flag, life stone, etc) : add a sprite renderer or a mesh renderer. Place it where your checkpoint should be. Note: This is a beginner guide, if you are an intermediate or advanced Unity user, this will probably be a bit too detailed for you. As we are developing a 2D platform game, it soon came to us that using checkpoints was mandatory.

mtasa checkpoint system

Hi everyone, today we would like to share our experience about Checkpoints in Unity.










Mtasa checkpoint system