Question by
lihaochen910 · Apr 11, 2018 at 10:31 AM ·
state-machineplaymakerfsm
2D platform game character state machine question
The status of the characters in our game is based on different types of weapons.
I use the Playmaker plug-in to implement the states of the character.
Such as, I have a weapon "shield":
Now, I have another weapon "DoubleJack":
But now I have a problem,
The basic state of these weapons is the same, and the different parts are only the attack state and skill state of the weapon.
This means that if I need to modify the basic state of the character,
then I need to modify the basic state of all weapons.
If there are a lot of weapons in the future, the workload of this modification is very large and error-prone.
Everyone who has good ideas can help me :)
Thanks anyway. (and sorry for my bad English)
qq图片20180411181623.png
(95.2 kB)
qq图片20180411181623.png
(331.7 kB)
Comment