I have looked around but haven't found anything that helped me quite yet, just for a test I made a scene with a camera that shot a cube at a wall. What I want to test is that after a couple hits the wall should disappear/break. Here's what I had on the bullet so far, I need a way to transfer the values from this script to my wall/playerproperties script.
Assistance would be great, thanks ahead of time
asked Aug 14, 2011 at 11:16 PM
very simple the scripts are attached to a game object so you would want to say something like
then you can say something like this:
Hope that helps :D Hans
answered Aug 15, 2011 at 02:06 AM
Player.js /// Iam assuming the name of the file is Player static var health=20;
// notice the word static before health variable you can update static var across files.
answered Aug 14, 2011 at 11:42 PM