Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

How to disable back button after one use, and then re-enable it after moving a page forward?

$
0
0
I am creating a Choose Your Own Adventure game, and the javascript I have set up now limits the player to three save files and disallows the use of the back button (through the use of config.history.controls = false;). I did this in order to discourage players from hopping into different routes through save scumming and to encourage them to replay the game in order to get the different endings. However, I've found that this can lead to an awkward problem where a player may start a new game, rapid-fire click their way through the beginning dialog that they've already read, and then accidentally choose a path that they already completed. Without the back button, they would either have to reload a save or start the game over again.

Is there a way to gray out the back button after one use while leaving the forward button in place, and then re-enable it when the players moves forward a page? I'm using Twine 2 with the latest version of Sugarcube 2.

Viewing all articles
Browse latest Browse all 1844

Trending Articles