Game Maker Studio: How to Collect, Cycle, & Use you're Items?

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



Duration: 30:07
78 views
0


Visit my MC GAMES site: https://mcolverdesigns.itch.io

Paypal Donate: https://bit.ly/30e8VDZ

GMS File: https://bit.ly/31PeYi8

Forgot to show this in video, Code File: https://bit.ly/3iQ3aTZ

Game Maker Weapon Select Link: https://bit.ly/30Xnw7B

o_global, Depth -500

Event:

Create

Actions:

global.selected=0
global.ammoArrow=0
global.ammoBomb=0
global.ammoDynamite=0

o_draw, Depth -500

Events:

Draw

Actions:

draw_set_color(c_white)
draw_set_font(font0)

if global.selected=0{
draw_text(view_xview[0]+300,view_yview[0]+70, string(global.ammoArrow) )
draw_sprite(s_arrow_box,image_index,view_xview[0]+300,view_yview[0]+20)

}

else if global.selected=1{
draw_sprite(s_bomb_box,image_index,view_xview[0]+300,view_yview[0]+20)
draw_text(view_xview[0]+300,view_yview[0]+70, string(global.ammoBomb) )
}

else if global.selected=2{
draw_sprite(s_dynamite_box,image_index,view_xview[0]+300,view_yview[0]+20)
draw_text(view_xview[0]+300,view_yview[0]+70, string(global.ammoDynamite) )
}


o_bomb_left, applies for bomb, and dynamite

Events:

Create

Actions:

m_gravity = 1

Events:

Begin Step

Actions:

vspeed += m_gravity;


Applies for the Dynamite Spin

Events:

Create

Actions:

angle=180+60
//Rotate the sprite
image_angle=angle

Events:

Step

Actions:

if mouse_check_button_released(mb_none) angle+=20 ///computer will rotate box.

image_angle=angle




Other Videos By MC Designs


2020-09-20Game Maker 8.1: How to Create Key Hover, & Door Opening from the Bottom to the Top?
2020-09-19Game Maker Studio: How to Create a Custom Load Message?
2020-09-19Game Maker 8.1: How to Make Card Key go, from Top to Bottom?
2020-09-12Game Maker Studio: How to Create Orb Hover?
2020-09-12Game Maker Studio: How to Create a Different Spin, using Code?
2020-09-06Game Maker Studio: How to Spawn Stars in Space?
2020-09-06Game Maker Studio: How to Click on a Button for Full Screen?
2020-09-05Game Maker 8.1: How to Cycle you're Weapons & Fixing Glitches?
2020-08-30Game Maker Studio: How to Create a Animated Torch with Light Follow?
2020-08-22Game Maker 8.1: How to Create a Name Bar & Blood Splatter Effect?
2020-08-16Game Maker Studio: How to Collect, Cycle, & Use you're Items?
2020-08-15Game Maker Studio: How to Create a Blood Splatter Effect?
2020-08-08Game Maker Studio: How to Create Swing Axes, using Smooth Image Angle Rotation?
2020-08-07Game Maker Studio: How to Create 8 Direction Movement & Enemy Follow?
2020-08-01Game Maker Studio: How to Create a Smooth Image Angle Rotation?
2020-07-25Game Maker Studio: How to Create a Light Follow?
2020-07-18Game Maker Studio: How to Create a Custom Message Box?
2020-07-11Game Maker 8.1: (Part2) How to Use True 3D Objects in you're game?
2020-07-03Game Maker 8.1: (Part1) How to Use True 3D Objects in you're game?
2020-06-27Game Maker 8.1: How to Use Drag & Drop Particles?
2020-06-19Game Maker Studio: How to Use Drag & Drop Particles?



Tags:
how
learn
teach
find
player
code
create
object
sprite
game
maker
room
if
place
set
get
draw
studio
back
ground
image
drop
change
computer
pc
android
device
collision
var
variable
step
speed
solid
move
vspeed
amount
angle
rotate
index
right
hit
blood
instance
origin
keyboard
direct
depth
check
released
none
active
direction
movement
select
weapon
use
cycle
pick
up
spacebar
enter
fire
collect
scroll
gravity
global
selected
ammo
arrow
bomb
dynamite
box