|
i am trying to create a sphere that when my character touches it it dies/respawns from the starting place, level isnt restarted. im trying to make it so that these spheres can only be touched 3 times throughout the whole game and on the fourth touch its game over. please could someone help me with my coding? as im getting no where
(comments are locked)
|
|
There are several ways this could be accomplished, depending on the rest of your game. Here's one simple way.... Here's a script to attach to your player GameObject:
Here's a script to attach to your sphere GameObjects: this just seems to make the ball bounce of the spheres. am i doing something simple but wrong?
Nov 23 '10 at 05:00 PM
crums
make sure your spheres are marked as triggers
Nov 23 '10 at 07:12 PM
Tetrad
(comments are locked)
|
