Get Element Earth ▶
Support This Channel ▶
Follow me on Facebook ▶
Follow me on Instagram ▶
Follow me on Twitter ▶
Follow me on Google+ ▶
In this tutorial I’ll show you how to use .ini files to store data. In this case we’ll use an .ini file to store which characters are locked and which are unlocked in our character selection example.
If you would like to have the ability to store ini files from predefined locations outside of your game’s executable directory then check out my tut on the Rini DLL here ▶
▼ Useful Links and Resources ▼
GM 8 Project File ▶
▼ More ▼
General Game Maker Playlist ▶
Game Maker Networking ▶
Happy Coding 😀
Nguồn: https://ka-nom.com/
Xem thêm bài viết khác: https://ka-nom.com/game/
Xem thêm Bài Viết:
- Hướng dẫn cách chơi game bắn cá vua hải tặc trên máy tính
- Hướng dẫn chi tiết cách tải game bắn cá miễn phí về điện thoại nhanh nhất
- Let's Play STORY OF A GLADIATOR Gameplay PC Part 1 (ENTER THE ARENA)
- FROG PRINCE drawing for DUNGEON KNIGHT Board Game
- Tracy McGrady Huge Half Windmill Alley Oop Vs Raptors 12-11-10
does ini files store their values even when you close the HTML5 game?
hey nice vid, but i have a question, how can i make this work if i have a main character that is always unlocked, and then he have to buy the others
Yo thanks for the tut.. but will this char select work on an platformer
?
thanks this video is a life saver.
thank you for gamemaker tutorial
does it matter where the ini file is created?
hay quá đi mất
Hi nice tut buddy but how can i do to unlock the characters with my score? For example if i get 5000 points i unlock one of the players
Hey this good
😛 Hy again…so i found out my problem..and that i need a INI file..this is what i have so far.
directory_create("pathscriptz")
ini_open("Pathscriptz.ini")
ini_write_string("cordsX","x","player_x")
ini_write_string("cordsY","y","player_y")
ini_write_string("coordsXX","player_x","xstart")
ini_write_string("coordsYY","player_y","ystart")
ini_close()
Is this enough to tell him that i want him to know the variables in every object where he needs it? Or do i need to read them too in any way?
btw, liked and subed
wow thanks man I was really stressing on creating a stat tracking system for my game with the .ini saving system, you really made it easy to understand, this tutorial really helped alot
I have a problem that I save a string to a ini file which goes like testtesttest#testtesttest#testtesttest…. and when I read it back I can only see "testtesttest" … it kinda erases everything after the # sign. Anyone know how to solve this shit?
why my game won't save on android using ini files..
but, when i run on my pc, my score save on PC using ini files~
Wow, A tutorial that wasn’t made for absolute beginners! Thank you for not explaining something I could easily figure out on my own. Sure the code could be made more stream line, but the amazing explanation, on *.ini files, was really all I needed to learn about. Better coding is something all programmers will learn with practice. Great job!
it would have been better if you would have created 2 objects that are changing depending on a variable and than just saved if the variable is true or false and put it in a script.
I think that would have made not just more sense also it would have saved you a lot of coding.
Can anybody confirm that this method works on mac and ios as well?
appreciate this very much! subscribed..
ok
hey how are u
hey good game 😀 you know how to do a game with the stile attack for the game Final fantasy 7?
I've been struggling for days trying to figure out how to save data on android. Thank you so much for the help. I've been reading article after article, wiki after wiki, looking for a way, countless hours thrown away. Then you saved me. Thank you SOOOO much for this tutorial. Give yourself a little pat on the back for making a difference in the world. You rock!
First View+Like+Comment
combo!