PlaceholderGames / DinoPark-2017

repo for Dino Park 2017, the testbed for CS3S667
2 stars 0 forks source link

Transition issue #45

Open Nicky-Jones opened 6 years ago

Nicky-Jones commented 6 years ago

Okey, so after some tinkering about, the reason (if no one else has solved this) the transitions isn't working properly when using the FSM is because the transitions between Grazing and Alert, and Grazing and Idle don't have conditions attached to the transition.

what this means is even if conditions are being met to go into a different state for some reason these transitions with no conditions takes priority over them. I've spoken to @DoctorMikeReddy about the issue before I solved it and when we communicated today I told him the reason for the issue and how it gets solved, he did respond saying he thought he added it and in all fairness to him, when i looked at the parameters made to act as the conditions for the transitions he did have them just forgot to add them.

So long story short, to get your transitions to work properly, click on the transition lines connecting Grazing and Alert, and Grazing and Idle, click to add a condition when you add the condition change the name of the condition to the parameter that equals the state it's going too.

for example.. clicking on the transition line going from Grazing to Alert, you add a condition and in that condition you change the parameter from "IsIdle" (I believe is default) to "IsAlert == true" and same for Alert to Grazing and Grazing to Idle. this will solve the transition issue.

Hope this helps, and having solved this problem for everyone, i expect you all to give me your work 🥇 hehe

DoctorMikeReddy commented 6 years ago

It may be I did these for Rapty, but not completely for Anky. Apologies if that is the case. Well done for finding (and fixing!) this issue.

Nicky-Jones commented 6 years ago

additional marks for me ???? heheh :P

DoctorMikeReddy commented 6 years ago

Yup!