- Home /
Is there any ifNot.Grounded command?
Hey, I'm creating simple game, and i want to make my character use "jump" animation while is not grounded. I know how is.Grounded work in script, but i wonder if does like opposite of this exist? I hope you'll understand my question C: and thanks for help!
Sorry, but I don't think you know how anything works at this point. isGrounded
isn't part of UnityEngine, it's a boolean variable from an example script.
Read the Unity scripting reference "cover to cover," and look up anything you don't understand in a C# / JS reference elsewhere. You are a long way from making your own game. (But don't let that discourage you!)
$$anonymous$$iloblargh, I just wrote is.Grounded ins$$anonymous$$d of isGrounded, that doesn't mean im that far from making my own game, because this one will be very, very simple anyway so everyone can do that :)
Answer by fafase · Jul 10, 2013 at 01:18 AM
Well the opposite of
if(controller.isGrounded)
is
if(!controller.isGrounded)
or am I missing something?
Yes yes yes yes :D Fafase, you saved my life; this is exacly what i was searching for. I wrote tittle wrong because it's if(controller.isGrounded) not is.Grounded >.<. But anyway; now my script work perfectly! Thanks again :)
Your answer
Follow this Question
Related Questions
2d grounded check problem? 3 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
how do I script this jump animation? 1 Answer
2.5D Platformer - Jump Question 1 Answer
Does Scripting Jump exist? (How To use/write goto) 3 Answers