Game Maker Studio: How to Collect all items in the Room for Door to Open?
Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=I0MqsA7ELmo
Visit my MC Anime site: https://mcanime1.wixsite.com/mcanime
Paypal Donate: http://bit.do/fkPAb
GMS File: https://bit.ly/2YOiXeZ
obj_load
Events:
Press L Key
Actions:
var roomID;
ini_open("savedata.ini");
roomID = ini_read_real("savegame", "roomID", 0);
global.friends = ini_read_real("savegame", "friends", 0);
ini_close();
room_goto(roomID);
obj_save
Events:
Create
Actions:
ini_open("savedata.ini");
ini_write_real("savegame", "roomID", room); //saves room id with key roomID
ini_write_real("savegame", "friends", global.friends); //saves hitScore value
ini_close(); //saves changes to ini file and closes
Other Videos By MC Designs
Tags:
how
learn
teach
find
player
code
create
object
sprite
game
maker
room
if
place
set
get
draw
studio
display
back
ground
alarm
image
drop
change
timer
time
instance
true
computer
pc
android
device
special
switch
collision
fire
destroy
number
equal
var
variable
character
people
items
item
count
global
save
load
next
collect
value
operation
step
friends
read
real
ini
close
id
ID
savegame
data
string
open
key
hit
score
amount
door
gate