Game Maker Studio: How to Create a Easy Inventory System for Android?

Channel:
Subscribers:
272
Published on ● Video Link: https://www.youtube.com/watch?v=0MsqWqU0DEg



Duration: 20:06
85 views
0


GMS File: https://rb.gy/zamcvx

Similar Video's: https://rb.gy/wngtd5, https://rb.gy/tvqycu

Code File: https://rb.gy/mqi3wn

Link on how to save a INI File, https://rb.gy/6zfls8

Note: 2/21/21: If you wanted to continue to the next room with your inventory you collected from the first room, you can do this. Make o_draw and o_global mark them as Persistent. Do not put o_draw and o_global in the next room, only in the first room. Then, when player moves outside room, say go to next room, then you would still have you're collected items. I just don't know how to save and load inventory yet. This means, when you exit game and go back to it, you will not have your collected items. So it works if you continue to play, but when you exit game, it will be gone.

Idea Example: You could have two levels, then at the end of the 2nd level, deactivate the o_draw and o_global, then the 3rd level could be a Bounce level, it would save there, then do a collision and hit something activating your o_draw and o_global which then inventory would be zero items, but you could recollect and move to next level with items collected in Bounce level. So when you exit game and load it back up you would be at the Bounce level with zero inventory, but recollect, before time runs out, then go to the next level with your items.

Note: Go to Global Game Setting up at the top next to plus sign, Android tab, be sure orientation is set to landscape, update splash to a black screen. You can make your own Splash Screen using a room. I've got a video on that. Graphics check interpolate colors between pixels, 24 bit, Device Support Any device supported, Size 1024x1024 or 2048x2048, 1024x1024 will work more so on older devices, but the image will not be soo crisp. Amazon and Permissions are blank.

Next Video: Googly Eyes

Forgot to add to Code File:

Backing, for the inventory items, location its going to be placed.

Events:

Step

Actions:

x=view_xview[0]+20
y=view_yview[0]+5

Events:

Draw

Actions:

draw_sprite(sprite_index,image_index,view_xview[0]+20,view_yview[0]+5);




Other Videos By MC Designs


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?
2021-02-12Game Maker 8.1: How to Open a Door, once Equal Number of Prisoners are Saved?
2021-02-12Game Maker 8.1: How to Scale Buttons, when Pressed?
2021-02-06Game Maker 8.1: How to Collect Key, Messages, Open Cell, & Save a Prisoner?
2021-01-30Game Maker Studio: How to Shake an Object, when getting Hit?
2021-01-23Game Maker Studio: How to Unlock Rooms?
2021-01-23Game Maker 8.1: How to Unlock Rooms?
2021-01-16Game Maker Studio: How to Jump through a Platform, & Land on it, using Parented Objects?
2021-01-16Game Maker 8.1: How to Jump through a Platform, & Land on it, using Parented Objects?



Tags:
game
maker
studio
android
device
computer
pc
windows
virtual keys
virtual
key
how
learn
teach
find
show
create
easy
inventory
system
arrow
bomb
shield
instance
deactivate
activate
item
hide
left
pressed
mouse
object
obj
fire
button
select
dynamite
use
pick
up
pickup
global
info
draw
set
step
ammo
collect
collision
sprite
string
color
font
gui
view
hview
xview
vk
keyboard
switch
position
phone
setting
landscape
graphic
interpolate
pixel
support
size
splash
permissions
amazon
image
speed
vspeed