Hello, I modified the "Pickup.js" script from the FPS tutorial and applied it to a game object within my scene. I'd like for the GUIText to increase by +1 each time the player collides with the game object. Here is the code I currently have applied to my game object: Code (csharp): var pickupType = PickupType.Health; var amount = 1; var bulletGUI : GUIText; function ApplyPickup (player : FPSWalker) { if (pickupType == PickupType.Health) { bulletGUI.text += amount; } } } Is something wrong with my coding? I'm not a scripter unfortunately. Please let me know if you have any information/fixes for this! Thank you! --Velk
Not sure if it'll make a difference as i'm no scripter myself, but don't u have one too many } at the end of the script? Maby try remove it and see if it works? Adam.