How to activate a trigger in state machine when object reaches position?
So I'm currently trying to make a boss fight for my Graidus shmup like game. So far I have made the script for making the boss come onto screen. Currently there is an Object in the game called Spot,...
View ArticleWhat is the best way to implement user input and movement when using a State...
Hello. I am trying to implement a state machine for my player. So far I've implemented two states, 'Move' and 'Idle', but I am planning on expanding it later. The movement system is as follows: when...
View ArticleFinite State Machine
Hi! I am still fairly new to programming in unity and I have now come upon something that is a little perplexing to me. I have a finite state machine with 4 scripts: a state machine manager deriving...
View ArticleMovement smoothing stopped working.
**Context**: I'm in the very early stage of making a simple local 3D fighting game. I used the movement code from [Brackey's Third Person Movement tutorial][1] and it worked fine. I implemented a...
View ArticleState Machine: Cannot switch states on second state enter
I have the following code in my grounded state, which works perfect on its first enter, it can be switched to any other state I want, but after entering in the grounded state for the second time, the...
View Articlehow to make multiple transition from one state?
I cant make multiple transitions from one state, like from jumping to idle, and from jumping to walk, when i do one of them, the option "make transtition" dissapears
View ArticleState Machine Question
Hello, I am pretty inexperienced with coding but I am trying to create a simple state machine. I followed a step-by-step youtube tutorial, but I am having issues. When I run the scene, I asked the...
View ArticleState Machine Tutorial Question
Hello, I am pretty inexperienced with coding but I am trying to create a simple state machine. I followed a step-by-step youtube tutorial, but I am having issues. When I run the scene, I asked the...
View ArticleHow to apply Animator to different game objects (when animations affect...
Is there a way to drill down from `Animator` to the game objects that get animated within each state? In my case I have a keypad of identical buttons. As you see below each number pad has PadCircle and...
View ArticleChecking current Animator Controller states gives unexpected result
We are trying to set up an animation system where we can "compose" character animations based on body part animations. We have an animator component with multiple layers, one for each extremity, where...
View ArticleTrouble with a State Machine for Turret
Hi! So I want to preface this that I have not worked in Unity for very long and have minimal coding experience in general. A lot of the code that I have is a combination of stuff I have learned from...
View ArticleIdentifying a transition to self in StateMachineBehaviour
Hello, ---------- I have a class that extends [StateMachineBehaviour][1] attached to some of my Animator states. These states have transitions with "transition to self" enabled. After some testing, it...
View Articlenot showing onPreviewGUI in StateMachineBehaviour Editor
i have a Editor script: public class c1 : StateMachineBehaviour { } and editor: [CustomEditor(typeof(c1))] public class c1_Editor : Editor { public override bool HasPreviewGUI() { return true; } } If...
View ArticlePlayer velocity becomes 0 for 1 frame during State Machine transition
Hello! I am currently making a game with a character that can run sideways and jump (for now), and I've already ran into a peculiar issue that I am not sure how to fix. I am using a class-based State...
View ArticleThe Quantum Animator? - Animator behaving differently when animation...
I'm making a 2.5D brawler game and I'm using root motion and assets from the unity asset store. I've been having a hard time using the custom state machine that came with the animations, but I was...
View ArticleNeed help with player movement,Help with character controller
Hi I'm in the early stages of working on a game and I am having some problems getting my player movements to work properly, so I thought I might try my luck and see if anybody in here would be able to...
View ArticleQuestion regarding FSM, are multiple Machines on the same Object recommended?
Hi, I'm about to tackle the FSM for my game but thinking about what states I need I came to the conclusion that I would need 2 separate StateMachines. So I have 4 Movement-States and 4 "Action" states....
View ArticleAnimation Event in state machine state
I have a simple Finite State Machine which i use, along with states, to control my enemy characters who currently have working states for Idle, Hunting and Attack (based on this tutorial:...
View ArticleCan I use Bolt to make some StateMachies and use them in another C# scripts?
I tried to write if and else to build a statemachine script component. And I find that I will have to write so many conditions, because the Player has so many states: Idle, Run, Jump, Attack... And...
View Article