I’m trying to make a countdown widget insert in a actor activated with a button.
I created a collision box and when I should activate the counter widget, the variable <I count> don’t change but the string “you touch starter button” is print in the screen.
I deduce that I am doing something wrong.
How do i get this variable to change in the tick event?
I’ve been fighting for days and I can’t figure out how to make it work.
Could someone help me?
Thank you so much
add another print in the startcount to print the value of the bool, and be sure that your bool change.
try toggle the value of bool , set false, print, set true print…
check the default value of the bool too.
the variables normally changes and are avaible for everywhere in the blueprint
i cant really think at something that could mess this up…
let me know
I did what you commented and it didn’t work for me so I decided to try something else.
I finally got it to work for me, I ran everything in the place where I didn’t touch it, now everything works for me, but the widget doesn’t show and update me the evolution of the counter it’s like I didn’t give it the command to render.
I really don’t know where or what blueprint should be used to display the information.
Do you know what the node is to be able to do this?
Add the changes I made.
This is the object with a trigger to activate the countdown.
This is the widget
And I did this in the class with the widget attached
All help is welcome!!!
Thanks in advance.
Did you used somewherelse the add-to-viewport? (i dont see it in the screenshots)
When you create a widget, “it start exist-ing” but you have to explicit add it to the view.
Here the first image in doc
Quote me for reply, so i know when you write something
Thank you so much for your help
I finally went back to the first option this option works much better for me than the second one.
I think I understood what you were asking me with the first option and I discovered that the bool does’nt change after the branch.
In the startcount it does change from false to true but not in the branch.