Please be simple about this as possible. I have an art background I usually don’t do this.
Let me know if you need the parent and child blueprints of collectables
The construction script only runs when the actor is created by pulling it into the scene from the content browser or updated by moving it around within the level. If you’re trying to track the number of items during gameplay it will need to be done in the event graph instead.
The “Get All Actors of Class” node will return an array of all the actors for a given class, in the case of the collectible objects. The length of this array is how many instances of that class are currently in the level. At the start of the level (Event Begin Play) you can set the length of the array to a variable. Whenever the character overlaps the item it will make a call to the collectible to have it destroy itself and reduce the number of remaining items which it then sends back to the character. Here’s a screenshot of a setup that should accomplish what you’re trying to do.