HOW TO PICK UP AND MOVE OBJECTS---Tutorial

I recently wanted to make a first person puzzle game, similar to the style of Portal. I wanted to have the player be able to pick up and move objects wherever they wanted, but all of the tutorials that I found were outdated by at least two years!!! This was frustrating, but I decided to just suck it up and make my own script with C#. It may not be the most efficient way, but it definitely does what I wanted it to!

Seeing as there is very little on this subject that works, I decided to make a quick video tutorial on how to do it! Here it is:

It’s a nice tutorial, but can I offer some suggestions if you make any more like this?

One, turn off (or turn down) unnecessary game sounds. Why are there loud footsteps in an empty scene. All it is doing is drowning out your voice.

Two, don’t just read code. I can do that by looking at it. You are the one who made it, so it would be useful to know why you did what you did. Someone might be wondering why we are turning the gravity on and off for example. So, you could say “we have to turn off the gravity and make it kinematic so it can be moved without physics affecting it.”

As another example, instead of saying “now we change the parent to this” you could say “now we need to change the parent to the first person controller so it will stick with it as we move about.”

I hope this helps. I do appreciate any and all tutorials people provide, so do not take this as negative criticism.

2 Likes

That is some really great advice, thanks. I noticed the loud audio in the background as well, but only after I had posted the video…I will definitely work on these things!

1 Like

Thank you so much for posting this video! it got me thru what I was trying to do. your a champ!!

hello! thank you very much, i come with a problem. i make amultiplayer game and the charater is being created after the game is started so its not in the first scene so how do i atach this?