Download

Updating the score when the ball collides with the box trigger

Hello, I am trying to make a ball update the score whenever it collides with the box trigger.
It does print a string whenever it collides with the box however it does now update the score for some reason.


I didn’t know what to put on the object for the cast to newwidgetblueprint so I created an object variable so that might be the reason, I don’t know.

Casting is for converting actor type, you have nothing to convert.

Give yourself an actual reference to the widget using the GetActorOfClass node ( assuming the widget is open ).

Thank you but it didn’t work.
The widget blueprint is not an actor, its the blueprint to show the score on the screen.

Sorry, typo

image

It worked!
Thank you

1 Like