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:
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