Hi,
I’m trying to run a function every 7 seconds to change a background picture of a button. It works, but it slows everything else down or stops everything else from functioning in my app entirely. Is there a better way to do this? I’ve tried using the forever loop and the while loop:
you could try taking out the repeat while block and replace it with an if/then statement. if true, do stuff. else, nothing.
immediately after the 7second delay, place a block to run the function changePublicVideo
I’m not totally sure yet. It appears to have, but there may have been another issue too. I’m going to finish building out the page and try it both ways and report back.
You may want to try the timer (under sensors) block to trigger a function at set intervals, in your case is 7 seconds. Then you don’t have to deal with messy while loops.