problem with itch.io deployment for playing in IPAD

Hi , I have finished my game and deployed it to itch.io as a web game.
it is playable normally. I use this game for my students it took about 30 min to finish the game

The students reported 2 problem with the game which are
1. The character movement is abnormally fast when they play using touchscreen on IPAD. (if you play on laptop browser using keyboard , the character move at intend speed , but also if you use the mouse to click the character will move very fast)
2. Problem with save. When they play on browser especially in IPAD , when they save the game , closed the browser and comeback later. The save is gone and need to start over.

Anyone got way to handle these problem

here is my game URL if you want to try : https://stonic.itch.io/pediatric-orthopedic-adventure
1. This is (unfortunately) default behavior. If you want to disable dashing entirely, you can do so by disabling dash on every map. If you want to disable dashing for only touch, you will need a plugin.
2. Not sure why this happens... I'd like to test but I can't read a word of Thai...
In the rmmz objects js around line 8342. You can save this code as a separate plugin since it will be overwriting the corescript.

The culprit is the $gameTemp - I'll comment out the line you need to remove to stop the dashing during a mouse click or touch input:
JavaScript:
Game_Player.prototype.updateDashing = function() {
    if (this.isMoving()) {
        return;
    }
    if (this.canMove() && !this.isInVehicle() && !$gameMap.isDashDisabled()) {
        this._dashing =
            this.isDashButtonPressed() /*|| $gameTemp.isDestinationValid()*/;
    } else {
        this._dashing = false;
    }
};

Hope this helps!
1. This is (unfortunately) default behavior. If you want to disable dashing entirely, you can do so by disabling dash on every map. If you want to disable dashing for only touch, you will need a plugin.
2. Not sure why this happens... I'd like to test but I can't read a word of Thai...
Thank you very much. I planned to update the game to english . If I finished translating majority of the game , can i dm you the new version , so you could be able to check the issue further.

In the rmmz objects js around line 8342. You can save this code as a separate plugin since it will be overwriting the corescript.

The culprit is the $gameTemp - I'll comment out the line you need to remove to stop the dashing during a mouse click or touch input:
JavaScript:
Game_Player.prototype.updateDashing = function() {
    if (this.isMoving()) {
        return;
    }
    if (this.canMove() && !this.isInVehicle() && !$gameMap.isDashDisabled()) {
        this._dashing =
            this.isDashButtonPressed() /*|| $gameTemp.isDestinationValid()*/;
    } else {
        this._dashing = false;
    }
};

Hope this helps!
Thankyou so much. I will try your method and will let you know the result.
Thank you very much. I planned to update the game to english . If I finished translating majority of the game , can i dm you the new version , so you could be able to check the issue further.
Okay, I just clicked blindly and got to the inn. Could save there, closed the browser and restarted again, and I can load the save file normally.

1705308761764.png
2. Problem with save. When they play on browser especially in IPAD , when they save the game , closed the browser and comeback later. The save is gone and need to start over.
This didn't happen in the browsers I tested.
You will need to confirm whether this is only happening on the iPad or on all devices.
You will need to confirm whether this is only happening on the iPad or on all devices.
Oh shoot, after rereading the OP, I do think that he means the problem is iPad specific.

And I just tested with Chrome on my iPad, and can confirm that the save file is gone after closing the browser (i.e. swiping it away).

I did some more experimenting and some reading. There does seem to be an issue with iOS and local storage, in that it seemingly deletes itself after a while. However. I also tested with a web deployment of a random project on a windows server, accessed it using my iPhone, and in this case the save is retained normally.

So I tried the same with Tearful Heart, and here too the save is not retained on iOS. I kind of lean towards suspecting that there is something in the itch web deployment that iOS doesn't like security wise, disallowing access to local storage.

Unfortunately I know too little about the save mechanism to offer any solutions, except to deploy it to something other than itch.io...

... and while writing this I found that this is a known problem with itch.io web deployments. Cross-site tracking is by default not allowed on Safari and this makes it so that local storage in itch.io deployments is not retained after a page is reloaded. You can disable this in your iOS device's settings:

Settings -> Safari -> Scroll down to "PRIVACY & SECURITY" -> Switch off cross-site tracking. There is no way to switch this off just for a specific site, and it needs to STAY OFF as the moment you switch it on, the save files disappear again.
Perhaps the problem is due to security due to the game running in an IFRAME that comes from another address.
In fact, both are subdomains, something that may be influencing.
Try running the game directly from the address inside the IFRAME:
Perhaps the problem is due to security due to the game running in an IFRAME that comes from another address.
Yes, that’s the problem exactly. Described in the link in previous post.

Try running the game directly from the address inside the IFRAME
This works, but the address apparently changes…
Oh shoot, after rereading the OP, I do think that he means the problem is iPad specific.

And I just tested with Chrome on my iPad, and can confirm that the save file is gone after closing the browser (i.e. swiping it away).

I did some more experimenting and some reading. There does seem to be an issue with iOS and local storage, in that it seemingly deletes itself after a while. However. I also tested with a web deployment of a random project on a windows server, accessed it using my iPhone, and in this case the save is retained normally.

So I tried the same with Tearful Heart, and here too the save is not retained on iOS. I kind of lean towards suspecting that there is something in the itch web deployment that iOS doesn't like security wise, disallowing access to local storage.

Unfortunately I know too little about the save mechanism to offer any solutions, except to deploy it to something other than itch.io...

... and while writing this I found that this is a known problem with itch.io web deployments. Cross-site tracking is by default not allowed on Safari and this makes it so that local storage in itch.io deployments is not retained after a page is reloaded. You can disable this in your iOS device's settings:

Settings -> Safari -> Scroll down to "PRIVACY & SECURITY" -> Switch off cross-site tracking. There is no way to switch this off just for a specific site, and it needs to STAY OFF as the moment you switch it on, the save files disappear again.
Sorry for the late reply , thankyou so much , I will try hosting it on other website first , could be easier , but then if the problem persist Will try what you suggest. thanks so much
Thankyou sir , but I kinda still confuse about what you explain , however , will try follow the guide in previous post .
Perhaps the problem is due to security due to the game running in an IFRAME that comes from another address.
In fact, both are subdomains, something that may be influencing.
Try running the game directly from the address inside the IFRAME:
For anyone having the same problem about deploying to web for IPAD.
I have found a solution by deploying the game to Github instead and use "github page" function to play.
It can now save on IPAD even when the ipad restart.
I assume you are talking about this:

In the OP's case, it's a good solution.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-itch-io-deployment-for-playing-in-ipad.164802/