Disable Mobile Support

How do i disable playing on mobile for my game

1 Like

Use the Device has a touchscreen condition to delete game elements and display an not supported message.

This is definitely one way to do it.

The other would be to not export to HTML5 and output it as a desktop EXE only.

There are many laptops and all-in-one desktops that come shipped with touchscreens so this could be problematic for those users.

Ya but the old condition Is a mobile device is also not reliable in 100% all cases.
Javascript Useragent could be a try or check the curser position to determine that there is no mouse.

If you don’t want mobile support for your game you can simply display a warning at the beginning of the game simply saying “THIS GAME IS NOT FOR MOBILE DEVICES” and people with mobile devices will know the game is not supported on mobile.