Game Maker Studio: (Part 1) How to Save, Load You're Room, & Mark Inventory Persistent?

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=A1eu7Isn4WE



Duration: 20:22
119 views
0


GMX File: https://bit.ly/2NDwGlL

Be sure to look at code, added code not shown in video.
Code File: https://bit.ly/3r5Qqwc

Idea: Move to the first and second room, while you're inventory stays the same as collected. Beat the boss with the items you collected. You beat the boss, and you move to the next level, where it will save automatically, then press the load button, it will load your room after the boss, but this will not include your inventory. You're inventory for the next level will be zero when you load it, also after you beat the boss, while still playing the inventory will be zero too.
The reason you want to set all inventory back to zero after the boss and loading it, is this. Place o_global and o_draw back into the room, this will reset your items back to zero, its because, if you try to load Persistent item count numbers and images, the numbers and images will not be there, because you did not put in the o_global and o_draw objects in the room. Persistent only works, when playing game, not returning back to game at a later time. You could have the images and numbers carry over like you did for the first and second room, but the problem will be when you load the game, and inventory will not be there. That's why counts are reset to zero. Plus it makes it more of a challenging game.

Please Watch Previous Video's on Easy Inventory, to setup you're Inventory System.

Android Link: https://bit.ly/3cYLxQB

Windows Link: https://bit.ly/3c4Sct0

Forgot to talk about the obj_load button,

obj_load

Events:

Left Pressed

Actions

Execute script: loadit

I did open up the loadit script and talk about it, where if you did do a save it will read the loaded room, but did not open up the object for the load button on the video.




Other Videos By MC Designs


2021-05-02Game Maker 8.1: How to Create a Password Door?
2021-04-30Game Maker Studio: How to have a Max Amount & Jump to Position?
2021-04-24Game Maker Studio: How to Create a Get Ready Screen?
2021-04-16Game Maker Studio: (Part2) How to Collect Coins to Buy Items?
2021-04-16Game Maker 8.1: How to Warp from one Area to another Area?
2021-04-16Game Maker Studio: How to Collect Rewards, once you past Certain Amount of Time?
2021-04-10Game Maker Studio: (Part1) How to Collect Coins to Buy a Item?
2021-04-10Game Maker Studio: How to Warp & Destroy at Position?
2021-04-03Game Maker 8.1: How to Find a Map, & Make Visible on Screen?
2021-03-27Game Maker Studio: (Part 2) How to Save, & Load you're Inventory?
2021-03-21Game Maker Studio: (Part 1) How to Save, Load You're Room, & Mark Inventory Persistent?
2021-03-20Game Maker Studio: How to Move, Parenting, & Void Getting Stuck in Walls?
2021-03-13Game Maker Studio: (Part 2) Randomly Choosing Set of Numbers & Images?
2021-03-13Game Maker Studio: (Part 1) How to Gain, Take Away, & Move to Next Room?
2021-03-07Game Maker Studio: How to Gain 50 Coins, then Restart Game?
2021-03-06Game Maker Studio: How to Save & Load Coins you Pick Up, Room, & Score?
2021-02-27Game Maker 8.1: How to Create a Mini Map, & find Enemies & Items?
2021-02-20Game Maker Studio: How to Create Googly Eyes, when Getting Hit?
2021-02-16Game Maker Studio: How to Create a Easy Inventory System for Android?
2021-02-13Game Maker Studio: How to Create a Easy Inventory System for PC?
2021-02-12Game Maker Studio: How to Angle Shake an Object, when getting Hit?



Tags:
game
maker
studio
windows
pc
computer
device
android
instance
count
inventory
system
position
orb
boss
room
move
global
ammo
arrow
shield
dynamite
bomb
selected
create
choice
choose
select
draw
text
image
view
health
hp
hits
save
load
persistent
index
string
box
color
font
depth
mark
follow
button
pressed
keyboard
key
item
selector
up
right
left
activate
deactivate
collect
store
carry
learn
teach
show
how
find
pickup
take
grab
next
level
amount