Description
=== OVER 500+ DOWNLOADS ===
[ OTHER FEATURED ASSET: CHECK TWEENLINE 2 ANIMATION ENGINE (+200 sales) ]
Create amazing animation sequences with a few lines of code:
https://marketplace.yoyogames.com/assets/7385/tweenline-2-animation-engine
[ WHAT IS PLAYERPREFS? ]
Save your game in the easiest and smartest way:
- Forget to manage files. Do it like Unity users.
- The system uses internally ds_maps so it is much faster and more flexible,
- The data is saved encrypted.
- You don't need to decide when save the file, playerprefs_gm will detect the best moment for you and save the data only if there are any changes.
[ ONLINE SCRIPT DOCUMENTATION ]
https://ciberman.net/playerprefs/docs/
[ SCRIPTS INCLUDED ]
Set the value of a playerpref (key and value)
playerprefs_set(key, value);
Get the value, returns the default value if the key does not exists
playerprefs_get(key [, default = undefined]);
Check if the given key exists
playerprefs_has(key);
Delete the given key and their value
playerprefs_delete(key);
Delete ALL the playerprefs. Use it whit care.
playerprefs_delete_all();
Save manually is optional, since playerpref system will do it automatically for you
playerprefs_save();
Also the textformat mini engine is included.
[ DEMOS ]
Check the examples in the images to see what are playerprefs about. Or check the demo inside the extension files or in this HTML5 DEMO:
https://ciberman.net/playerprefs/
[ NOTE ]
Yes, there are already other extensions in the Marketplace for saving files (but no one for playerprefs, like Unity), so I have recreated my own playerprefs engine from scratch and published for free. Now anyone can enjoy using Unity playerprefs in GM!
[ WANT TO SAY THANKS? ]
If you like this extension, consider buying other extensions made by me, like "Tweenline 2 Animation Engine" https://marketplace.yoyogames.com/assets/7385/tweenline-2-animation-engine
End User Licence Agreement (EULA)
Age Rating: 4+
Versions
GMS1 - Version 1.0.1. Published September 25, 2016
Resolved a bug that was causing the extension to not save correctly the data
GMS2 - Version 1.0.2. Published December 19, 2018
Updated to work with GMS2!! Also, fixed some spelling mistakes and small bug with demo in HTML5. And check the new online docs: https://ciberman.net/playerprefs/docs/ And the online demo: https://ciberman.net/playerprefs/