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?
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
vincent.dcn
  • Messaggi: 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.
Avatar utente
Misaki

Misaki
  • Messaggi: 768

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.
Avatar utente
Harald

Harri
  • Messaggi: 4104

vincent.dcn

BIG HELP. Thanks so much!

---

Misaki ha scritto: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
  • Messaggi: 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
Avatar utente
Misaki

Misaki
  • Messaggi: 768


Torna a Unity