Does not track object count in the game

Hello,

I’m doing this tutorial on DT and it does not track “collectable items” in the game level.

Tutorial link:
http://www.digitaltutors.com/tutorial/1861-Creating-Gameplay-Systems-using-Blueprint-Features-in-Unreal-Engine#play-45764

Blueprint Screenshot:

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

Hey ArtisS-

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.

Well I tried removing all “collectable objects” from the game and re add them. My debugger blueprint still does not shows 0 objects.

Other Blueprints I have for this. Maybe its related I’m confused.

To Display objects (Debug)

Hey ArtisS-

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.