- Home /
How to Move an object from one spot to another?
Hey what's up Unity Ppl! I need some help.
I'm trying to make an object move from one place to another by using a GUI Function. For example this is what i'm doing.
I click on the Object and then 2 GUI Buttons Pop up. And ask Will you like to move your Object to the left side of the table? or the Right side of the Table? and i click left. How can i make the object move to that spot and stop once it's at the left spot of the table?
I tried this out but i think i made it move but it doesn't really look like its moving. It just looks like it teleported there or sumthing lol.
Please help if you can, i'd appreciate it.
Answer by ankush_Kushwaha · Feb 23, 2014 at 10:55 AM
You can use MoveTowards function to move your game object at desired position.
I'm sory dude i clicked my answer as answered by accident. And the worst part about it is that it's a comment. $$anonymous$$y mistsake.
Answer by Xeong-Hu · Feb 25, 2014 at 06:55 AM
Alright cool. that sounds alright. It helped. But I figured out i couldn't make another GUI button appear up when i click my first GUI button. So now i want to make it like an object will go to the position where i clicked. But i'll ask that some where else. But thanks your tip did help.
use comments to post some thing that aint an answer
"Add new Comment"
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Sprinting Audio Problem 1 Answer
can someone please take a look at this movement script? 3 Answers
Add a slight rotation when moving horizontal 0 Answers
Force iOS first person to move slightly when player is not moving it? 1 Answer