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

GalaxyHunter
05 Oct 2018, 14:43

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

change color by itself without the player tapping an option?


Belén
06 Oct 2018, 10:34

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


GalaxyHunter
07 Oct 2018, 00:25

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


manowar
07 Oct 2018, 17:53

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

What is your actual editor?


GalaxyHunter
15 Oct 2018, 03:16

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