![]() ![]() If (Input.GetButtonUp("Vertical") & !Input.GetButton("Vertical"))Īttacks. Used to return to neutral after aiming up or down Player.SetDirectionalInput(directionalInput) Īttacks.SetDirectionalInput(directionalInput) sends the input to the player controller Vector2 directionalInput = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical")) The 1 key pressed in A will immediately go to call handler B, throw the 1 away and then take the key they hit next for input - 0, 1 or 2 in this case. It doesn't seem to by an input # limit, but I can't figure out anything obviously wrong with my code. Similarly, if I hold my Dash key and down/up, I can't seem to jump. (Jump + LookUp + Attack doesn't work, but Jump + LookDown + Attack does). This strangely isn't a problem for if I'm holding down and attacking. When I hold the jump button down and the up arrow (to look up), my attack button doesn't seem to work (I checked and putting a Debug.Log in the input manager doesn't trigger for the attack at all). ![]() I'm making a 2D platformer, with the ability to jump, dash, and attack (in 4 cardinal directions). This is the first time I've been stumped on debugging.įor example. Hello, I have a weird issue where when holding down one button it seems Unity wont read other inputs. r/GameAudio - It may look good, but does it sound good?ĮDIT: This is solved, the issue is my keyboard simply doesn't allow those input combinations. r/LevelDesign - Learn to make excellent levels and worlds. r/GameDev - Meet and communicate with other game developers. r/PixelArt - Admire, share, and observe beautiful pixel art. unit圓D on 8chan - Unity-focused image board Unity 2D forums Tutorials Filter Wiki List Be familiar with Reddit's Rules, Reddiquette, and Self-Promotion Guidelines. ![]() If the content is not related to 2D/2.5D development, it may belong in /r/Unit圓D or /r/GameDev. r/Unity2D is a subreddit for news, tutorials, feedback, resources, and conversations related to 2D or 2.5D game development using the Unity game engine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |