Hard time using vector3

Hi guys,
I’ve just bought the 2d toolkit and started doing some tests on the 2d engine…
I’m building a simple controller for moving left and rigth with the arrow keys, and I’m using Vector3 with transform for that.

I don’t know if that even is the best way to do so, but anyway, I’m having a little trouble understanding how to manipulate it.
For instance, how do I set the values using variables?

Here´s what I’m trying to do:
Code:

private float monkeySpeed = 0.0f;

private Vector3 monkey_x_movement = new Vector3 (monkeySpeed, 0, 0);

As I understand, I cannot use a variable inside a new Vector3 build or something…
Later on the script I wanted to change the variable monkeySpeed, but other than that I don’t know how to set up that value on that Vector3 variable monkey_x_movement…

this.transform.position -= monkey_x_movement;

That’s the command I use once the arrows are pressed.

Sorry if I did something wrong here, I’m not very used to post on forums.
I’m also trying to read the documentation over this, but some pages aren’t loading

Thanks!

got to make it work!

private float monkeySpeed = 0.0f;
private Vector3 monkey_x_movement = new Vector3 (0, 0, 0);

monkeySpeed = 10.0f;
monkey_x_movement.x = monkeySpeed;

just a little detour to insert the variable