Quote: "
Why does the hide object command not work in an if statment?
"
Why didn't you post the code so we could see what is wrong with it? You CAN use a hide object command in an IF Statement.
Quote: "How can I tell the game to play certain animations for certain actions like running, jumping, punching, etc
"
You need to know where the "animation" Start Frame and End Frame Are (what they are) so You can loop that portion of the model's animation data to get the results you want.
Quote: "Besides these please tell my what else I should know about this subject"
Learn About Timer Based Movement - as it applies to how you can control animations based on the "Time" versus Looping - allows smoother control - also that Animation FRames are not INTEGER they are FLOATS so looping from 1.5 to 10.7 is valid.