Can the div background change color every few seconds **without** the player tapping anything?

My question is, can you write in the editor to make the

change color by itself without the player tapping an option?


You need to attach a js SetInterval method to the intended element, like this:
https://www.w3schools.com/js/js_timing.asp


@Belén I have tried copying and tweeking the script but it won’t work for me.


The div background is different in online editor/desktop and in the final game exported.

What is your actual editor?


Manowar, I use the online editor on mobile, I guess it limits me by a lot?


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums