Skip to main content
added 231 characters in body
Source Link

I was asking myself if you could change the position of a game object with the input of the player, with the new input system.

That is, with something like this:

OnMove() {

//Code to change game object's position

}

I want to make a script where the position of the game object is changed to a specific position, based on the joystick value and the WASD keys. That is, there are multiple positions the game object can go to.

This is for a top-down game where a gameobject should go to differnt places around the player. Since this gameobject is parented to the player and the gameobject is always touching the player, positions from -1 to 1 are enough.

I was asking myself if you could change the position of a game object with the input of the player, with the new input system.

That is, with something like this:

OnMove() {

//Code to change game object's position

}

I want to make a script where the position of the game object is changed to a specific position, based on the joystick value and the WASD keys. That is, there are multiple positions the game object can go to.

I was asking myself if you could change the position of a game object with the input of the player, with the new input system.

That is, with something like this:

OnMove() {

//Code to change game object's position

}

I want to make a script where the position of the game object is changed to a specific position, based on the joystick value and the WASD keys. That is, there are multiple positions the game object can go to.

This is for a top-down game where a gameobject should go to differnt places around the player. Since this gameobject is parented to the player and the gameobject is always touching the player, positions from -1 to 1 are enough.

Cleanup
Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

How to change GameObject position based on playerInputusing new Input System?

So basically I was asking myself if you could change the position of an gameobjecta game object with the input of the player, with the new input system. With

That is, with something like this:

OnMove(){

OnMove() {

//Code to change game object's position

}

//Code I want to change gameobjects position

}

And also could you make a script where the position of the gameonjectgame object is changed to ana specific position, based on the joystick value and the WASD-Keys keys. So thatThat is, there are multiple positions the gameobjectgame object can go to.

Let me know if you need more infos on this!

How to change GameObject position based on playerInput?

So basically I was asking myself if you could change the position of an gameobject with the input of the player, with the new input system. With something like this:

OnMove(){

//Code to change gameobjects position

}

And also could you make a script where the position of the gameonject is changed to an specific position, based on the joystick value and the WASD-Keys. So that there are multiple positions the gameobject can go to.

Let me know if you need more infos on this!

How to change GameObject position using new Input System?

I was asking myself if you could change the position of a game object with the input of the player, with the new input system.

That is, with something like this:

OnMove() {

//Code to change game object's position

}

I want to make a script where the position of the game object is changed to a specific position, based on the joystick value and the WASD keys. That is, there are multiple positions the game object can go to.

Source Link

How to change GameObject position based on playerInput?

So basically I was asking myself if you could change the position of an gameobject with the input of the player, with the new input system. With something like this:

OnMove(){

//Code to change gameobjects position

}

And also could you make a script where the position of the gameonject is changed to an specific position, based on the joystick value and the WASD-Keys. So that there are multiple positions the gameobject can go to.

Let me know if you need more infos on this!