Game Maker Studio: How to Stack & Use Objects in you’re game.
Visit my anime and game site: http://mcanime1.wixsite.com/mcanime
GMX File: https://goo.gl/UKvUU9
Note: Each item you pickup will need two images for each, the one you select and use, the other object is there but is not visible, acts as a placeholder.
Great for you're inventory, when picking up items, or for some other game that involves stacking objects, and picking from the top first, much like a card game.
Example:
fbox object: Be sure its set above other boxes -1 Depth, sbox object, is set to 1 Depth, lastbox object, is set to 2 Depth
Events:
Left Pressed
Actions:
Check Object:
Applies to Self
object: sbox
Relative
Change Instance:
Change into: firstbox
Perform Events: Yes
firstbox: Be sure its not visible
Events:
Create
Actions:
Play sound coinsd