Skip to content

u/kilhjer

In this archive from Sep 2019 to Sep 2019

0
posts
11
comments
0
media
10
score

i dont know what the problem is here is the code . using System.Collections;

using System.Collections.Generic;

using UnityEngine;

​

public class player_movement3 : MonoBehaviour

{

​

​

​

public float MoveSpeed = 5f;

​

​

public Rigidbody2D RB;

​

​

Vector2 movement;

​

void Update()

{

movement.x = Input.GetAxisRaw("Horizontal");

​

​

movement.y = Input.GetAxisRaw("Vertical");

}

​

​

​

void FixedUpdate()

{

​

RB.MovePosition(RB.position + movement + MoveSpeed + Time.fixedDeltaTime);

}

}

0 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.