hi everyone
i am making a simple game right now that needs a random image selected out of 5 and displayed on the screen. I was taking an approach of having a widget under the main create scene function in storyboard activate a separate local function located up in my program, which then uses math.random to get a number 1-5 and display it (display code is in the create function). (I will match the numbers up to the images later, although i don’t know how to do this either). I set up a local variable to store the number with a default value of 0. It will display the 0 fine, but will not update the number when i press the button. It says under the created scene function that the following commands will only be run once, so do i need to move the actual display code out of the main scene creation function so it keeps looping?
thanks
sry for bad title too