A
A
Andrew2022-02-06 18:30:20
Android
Andrew, 2022-02-06 18:30:20

Unity game,... how to make the hero carry an item with him?

I made a 2D game on the unit, while doing the project everything worked, the hero raised his weapon and fired. after compiling the game on android, the hero raises the weapon, but when I start moving the weapon remains hanging at the point where the hero took it .. and the hero walks without it ..... I created a gameObject that hangs on the heroes, the weapon is taken to this point, and further it remains in the same place ... How can I make it so that I carry it with me ??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nekit Medvedev, 2022-02-11
@NIKROTOS

Hang a script on the object that will change its coordinates, adjusting to the coordinates of the point on the hero, a crutch of course, but it should work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question