monobehaviour cant recognize x and y

i am 13 years old, in my school i learned there is a class called MB1 that can recognize x y & z. i was trying to install it in my house but i couldnt find that. i am trying to make my object move and i want to use:

if(Input.GetKey(KeyCode.W))
{
y = y + 4
}

i don’t want to use the horizontal, vertical, transform position, game object ect.
does someone have any tips for me or maybe the link to download the MB1 class? ty all!
:slight_smile:

I think you misunderstood goal of exercise.
What do you mean exactly by MB1?
Monobehavior1? Or input.GetMouseButton(1) which is right click? Or something else?

In normal cases, you don’t need download anything. All core Unity modules to the task are provided.

Why you don’t want use transform, to move object?

but, don’t you have to access the transform.position to move an object? can it be done otherwise?

Yes this is one of the possible approach.
But also look here in the doc listed options.
https://docs.unity3d.com/ScriptReference/Transform.html

You can use rigid bodies as well and apply forces. But many games don’t need that extra level of complexity.

Again asking:

What exactly and what step you took to install it?