For a part of my my game i want it to move only six units at a time when you hit the button but instead it moves 6 units per second.
Basically, Can 6units/second Can't 6units/when the button is hit
Mar 01 '12 at 06:39 AM
Mar 01 '12 at 04:55 AM
Well, like all things in scripting, you should be telling it to do that, instead of what you're telling it to do now.
movingObject.transform.translate(movingObject.transform.whateverDirection * 6);
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Mar 01 '12 at 06:39 AM
Seen: 445 times
Last Updated: Mar 01 '12 at 09:17 AM
how can I move my unity pro or iphone to anyother macbook?
Control Mid-Air Movement With Character Controller
move object to the hands of the user
Move to next level on collide
Button on joystick = move forward
one camera or several?
Moving Physics Objects With Character Controller?
Problem with Alt + Middle Click Drag for Camera (Windows)
iPhone in-game move rotation
move player to the grabPoint