vincent.dcn

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?
У вас нет необходимых прав для просмотра вложений в этом сообщении.
vincent.dcn
  • Сообщения: 5

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 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.
Аватара пользователя
Misaki

Misaki
  • Сообщения: 755

Harald

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.
Аватара пользователя
Harald

Harri
  • Сообщения: 4088

vincent.dcn

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 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 to credit your software in the beginning credits. Is this possible?
vincent.dcn
  • Сообщения: 5

Misaki

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
Аватара пользователя
Misaki

Misaki
  • Сообщения: 755


Вернуться в Unity