Can not get a storing system to work.

as the title says, and as you can see in the images I have an If statement set up, when true the enemy health is 0 and is dead (Image 2), so I set the function score there to increase by 100 (Can be seen in image 3).

When I include it into my widget for my UI and bind it to a text bubble, As seen in image (1) I constantly receive the Fail error that I setup so something is wrong with my casting. Any help would be appreciated, sorry if this is a silly question.

Sorry about the images, if you open them in a new tab you can see the entire image :slight_smile:



You need target for casting, in your first picture you dont have input for cast, thats why it fails.

Thankyou for your help! :slight_smile: unfortunately I receive this error, it goes over my head but if you know the solution let me know :). I added an input of Basic Enemy and done as you said.

“Error Binding: property ’ TextDelegate ’ on widget ’ TextBlock_260 ’ bound to function ’ GetText_0 ', but the sigatnures don’t match. The function must return the same type as the property and have no parameters.”

If I was you, I would consider putting the total score in the player class. You could use that and get the information from that to display. Then each time you kill any enemy it could notify the player to increase score.