Question by
Thechaosbear · Oct 29, 2015 at 07:37 PM ·
script.
Help with script C#
Hello, i am currently trying to make a game, but encountered a problem with the movement script that i am using. What i want to happen is the player moves to the right on it's own which is working fine. also i want to have the player jump when the mouse button is pressed down. But i am having issues with the jumping part of my script, the jump works fine, but i can't use the button i set to control the jumping, so the player will jump, and then bounce forever. here is my script.
using UnityEngine;
using System.Collections;
public class CharacterMovement : MonoBehaviour {
%|1254188289_1|%
%|-494223205_2|%
%|-2077518522_3|%
%|1446347572_4|%
%|2146696141_5|%
%|-864192617_6|%
%|88266479_7|%
%|362967332_8|%
%|1509994029_9|%
%|1494124962_10|%
%|-1967845660_11|%
%|-2047196699_12|%
%|1551696034_13|%
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612043222im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can I access to child objects variables from other C# script ? 0 Answers
Moving and jumping 1 Answer
how i can set attack back to false ? 0 Answers
I need help to change C# to JS 1 Answer
I can't test the game 0 Answers