CREATE and FUCK your own AI GIRLFRIEND TRY FOR FREE
x

HTML New to HTML game creation

AnterosKage

New Member
Game Developer
Jan 9, 2023
10
43
Hi everybody,

I am pretty new here but working on creating my own HTML game using the inspiration and tools from various sources.

I am currently building it all through twine and am looking for some help on two things.

1: Does anyone know why when I test my game save it then go to load it does not load any of the variables from my save?
2: How or where do I put some coding so that a variable is constantly updated when say time is changed for example:

<<if $time == 7 >><<set $PersonLocation to "Bedroom">>
<<if $time == 8 >><<set $PersonLocation to "Hallway">>

and so on, I am hoping I do not have to include if statements for this on every page?

Any help would be appreciated.