Question by
puddle_pirate13 · Sep 28, 2016 at 11:43 PM ·
2d game
How do I change the speed of my 2D character?
I'm fairly new to Unity and am having trouble changing the speed of my 2D character. Any help would be greatly appreciated. Thanks.
Below is the code for the movement of my player object.

movement.png
(23.2 kB)
Comment
Answer by SpaceManDan · Sep 29, 2016 at 12:45 AM
I think you just need a multiplier?
Try this:
float MULTIPLIER = 2 (or any number you want to multiply it by).
(rbody.positioin + movement_vector * MULTIPLIER * Time.deltaTime)
Let me know if this makes sense.
Cheers, that helped out a ton. simple enough lol.
Your answer