Page 1 of 1

Saving Feature / Choice that you can press at any time during the tease

Posted: Tue Jan 12, 2021 8:44 am
by Joicon
Hey, im making my most ambitious tease yet and while it is still in production and ive learned a lot about how the more complicated eos feautures work I still havent exactly figured out the two mentioned above...
Any help is appreciated!!!







Thank you for your time!
-Joicon

Re: Saving Feature / Choice that you can press at any time during the tease

Posted: Tue Jan 12, 2021 9:14 am
by Roblsforbobls
Hi Joicon, have you tried using a notification rather than a choice action? One of the actions of the notification can be used to regenerate itself after being clicked.

Re: Saving Feature / Choice that you can press at any time during the tease

Posted: Tue Jan 12, 2021 9:14 am
by Joicon
Update figured out the second thing.
Saving still confuses me though

Re: Saving Feature / Choice that you can press at any time during the tease

Posted: Tue Jan 12, 2021 9:15 am
by Joicon
Roblsforbobls wrote: Tue Jan 12, 2021 9:14 am Hi Joicon, have you tried using a notification rather than a choice action? One of the actions of the notification can be used to regenerate itself after being clicked.
Thanks man worked!!!

Re: Saving Feature / Choice that you can press at any time during the tease

Posted: Fri Jan 15, 2021 7:05 am
by Roblsforbobls
Joicon wrote: Tue Jan 12, 2021 9:15 am Thanks man worked!!!
Glad I could help haha
Yeah, I never figured out the save feature either, but I'm sure you can find a forum post somewhere about it

Re: Saving Feature / Choice that you can press at any time during the tease

Posted: Fri Jan 15, 2021 3:08 pm
by fapnip
Roblsforbobls wrote: Fri Jan 15, 2021 7:05 am never figured out the save feature either
Tease storage?

To save stuff

Code: Select all

var myVariable = 1.396778; // Whatever value you want to save
var myVariableStorageKey = 'myVarKey'; // Keep your key names short.  You only get 1KB total storage, including keys, encoding overhead, etc.
teaseStorage.setItem(myVariableStorageKey, myVariable); // Save value to storage
To load stuff

Code: Select all

var myStoredValue = teaseStorage.getItem('myVarKey'); // Load value from storage
if (myStoredValue !== undefined) {
  // There was actually something stored in that key name.
  // Do something with it.
}

Re: Saving Feature / Choice that you can press at any time during the tease

Posted: Wed Jan 20, 2021 7:02 am
by Roblsforbobls
fapnip wrote: Fri Jan 15, 2021 3:08 pm
Roblsforbobls wrote: Fri Jan 15, 2021 7:05 am never figured out the save feature either
Tease storage?

To save stuff

Code: Select all

var myVariable = 1.396778; // Whatever value you want to save
var myVariableStorageKey = 'myVarKey'; // Keep your key names short.  You only get 1KB total storage, including keys, encoding overhead, etc.
teaseStorage.setItem(myVariableStorageKey, myVariable); // Save value to storage
To load stuff

Code: Select all

var myStoredValue = teaseStorage.getItem('myVarKey'); // Load value from storage
if (myStoredValue !== undefined) {
  // There was actually something stored in that key name.
  // Do something with it.
}
You're a gentleperson and a scholar, thank you