Hi everybody,
here what I’m tryng to do:
- I click on an object in my level
- It appears a menu with three buttons
- Clicking the buttons I change the object and set values for two variables
- if I go on pause I can see the values of the two variables shown in a box
how I’ve done:
In the widget “Menu_PopUp_A2” I set different values at the two variables “PA_Scritta” and “PA_Price” depending on which button I’m clicking
In the widget “Pause_Menu” I created two text variables “Testo-A” and “Price-A” and bound to two different boxes as content; the value of the two text variables is set at the event construct by the two cast variables “PA_Scritta” and “PA_Price” (converted in text)
What’s the problem:
Since I’m setting the two text variables at the event construct of the widget, the boxes should be always updated when I add to the viewport the widget, but it works only the first time I add it and then remain fixed on the value of the first time!
Don’t mind to the warning of the “cast to” in the “Menu_PopUp_A2” screenshot: in theory I’ve done all right and practically works perfectly without problems
I’m a real newbie so I’m sorry if my question is dumb but even looking at “parallel” tutorials (like the inventory one) I’m not figuring what is missing or what I’m doing wrong!