|
Hi I am a beginner to unity. I have made a very basic game where I have 2 balls that bounce. Basically I now want to start with the balls on the ground and on a click of a button (developing for mobile devices) the balls will be pushed to make them bounce. Any help?? Thanks
(comments are locked)
|
|
You can use GUI.Button to make a button, and make the balls start bouncing when you press it. See also: Thanks, but how do I make the balls bounce on the click of the button?? I assume this is scripted but not sure where to start? Thanks
Jul 18 '12 at 03:37 PM
hanimalP
(comments are locked)
|
|
On the GUI script you can have something like: I hope this helps you get those balls bouncing. Just remember to assign the tags to the ball objects, add rigidbody components to the balls and of course change the Rect() variables of the buttons so you'll have them where you want them. SheepHugger out.
(comments are locked)
|
