-
I just started developing in stride with only basic unity knowledge. I managed to get my character jumping (I'm making a flappy bird clone) and when I press space a cmd window opens and then the game window and the cmd window closes. Why is this happening?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
I can see my character jumping before the game crashes |
Beta Was this translation helpful? Give feedback.
-
if you press the run button in VS 2022 it should also give you a better error. You may also prefer Input.IsKeyPressed instead of Input.IsKeyDown here as that will only trigger once per button press. |
Beta Was this translation helpful? Give feedback.
-
That's the wrong |
Beta Was this translation helpful? Give feedback.
That's the wrong
Rigidbody
type, you're using bullet's. Remove yourusing BulletSharp;
and changepublic RigidBody rigidBody;
topublic RigidBodyComponent rigidBody
instead