- Изменено
A Problem With Jump
This Is my code for "PlayerController" inside Visual Studio.
I got most of this from a lovely lady who made a tutorial using her Fruits VS Vegetables game. The tutorial was amazing, it helped me out tons. However, my jump animation is only two frames. After my character goes through those two frames, he starts running again in mid-air. I'm so frustrated because all the tutorials on how to fix this are for using Unity; and nothing for using Spine.Unity; How do I fix it so that the sprint animation doesn't begin until Player has touched the ground?
Hmm, I'm sorry I'm not sure what's wrong, but our example script of the spine-unity runtime named BasicPlatformerController.cs
which you can find in Spine Examples/Getting Started/5 Basic Platformer
may be helpful. This one has more detailed judging of jumps and landings, so that might give you some clues.
I would recommend to add some debug print (Debug.Log()
) statements to the relevant sections of your code to figure out what's going wrong. You may want to use the keyboard hotkey Ctrl/Cmd+Shift+P
to pause the game in the Editor, and to then advance frame by frame.
BIG HELP. Thanks so much!
Misaki написалHmm, I'm sorry I'm not sure what's wrong, but our example script of the spine-unity runtime named
BasicPlatformerController.cs
which you can find inSpine Examples/Getting Started/5 Basic Platformer
may be helpful. This one has more detailed judging of jumps and landings, so that might give you some clues.
I would to credit your software in the beginning credits. Is this possible?
I would to credit your software in the beginning credits. Is this possible?
Sure! If you would like to use the Spine logo, you can find the assets here: Brand Assets