Problem: Javascript "dice roll" not working on wordpress site with touch screen devices

PROBLEM SOLVED. :muscle::clap:

Thanks for all the advice folks. I’m still not sure what the problem was, but I found an alternative approach from an old forum post of Daniel’s that uses a ‘jump to time in timeline’ function. This now replaces the script I was using, to generate the random number needed for the dice roll. I combined this with my an additional timeline to actually ‘roll’ the dice and reveal the number when the dice lands.

Here’s Daniel’s post: Jump to random time in timeline
You can view my final game here: https://www.skippthesailor.co.uk/ropes-and-ladders/
And here is a stripped back single-layout version of the game if anyone wants to see the final set up I used.Skipp ropes and ladders_small_Phone only.zip (1.8 MB)

1 Like