Game Maker Studio: How to Create Random Objects.

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



Duration: 13:03
560 views
0


Visit my anime and game site: http://mcanime1.wixsite.com/mcanime

GMX file: https://goo.gl/TM7Pmo


You click on Question Mark

Box:

Events:

Left Pressed

Actions:

{
r = irandom_range(1,4)
if r=1
makethis=cherry
else if r=2
makethis=orange

else if r=3
makethis=grape

else if r=4
makethis=banana


adc=instance_create(x,y, makethis)


}

or

Let computer create the random objects

Box:

Events:

Create

Actions

Move direction, make it 3 or less

Events:

Step

Actions:

Let computer create the random objects

num=irandom_range(1,150)
if num 5 (had to take out the angle bracket, due to Youtube, please use a right pac man sign between num and 5)
{
r = irandom_range(1,4)
if r=1
makethis=cherry
else if r=2
makethis=orange

else if r=3
makethis=grape

else if r=4
makethis=banana


adc=instance_create(x,y, makethis)


}

Events:

Collision with blocker

Actions:

Reverse horizonal direction




Other Videos By MC Designs


2018-10-13Game Maker Studio: Mastering Rain.
2018-10-07Game Maker Studio: How to Create a Parallax Background.
2018-07-15Game Maker Studio: How to Unlock Rooms in You're Game.
2018-06-16Game Maker Studio: How to Collect a Certain Number of Coins to Gain Health.
2018-06-09Game Maker Studio: How to Create Enemy Health Bars above their heads.
2018-05-27Game Maker Studio: How to Deactivate & Reactivate Keyboard Key’s after getting Hit.
2018-05-20Game Maker Studio: How to Move to the Next Room after Collecting Certain Amount of Coins.
2018-04-07Game Maker Studio: How to Create Boss Movements with Custom Health bar.
2018-03-24Game Maker Studio: How to Create Enemy Hit Points.
2018-03-18Game Maker Studio: How to go from Day to Night, Night & Day.
2018-02-25Game Maker Studio: How to Create Random Objects.
2018-02-04Game Maker Studio: How to Create Special Effects.
2018-01-21Game Maker Studio: How to Make you’re File Image Icons Larger on Screen.
2018-01-13Game Maker Studio: How to Create a Mini Map.
2018-01-08Game Maker Studio: How to Create Lives & Healthbar for Player & Boss.
2017-12-09Game Maker Studio: How to select a player & continue background sound.
2017-12-01Game Maker Studio: How to Swim in Water, show Bubbles & Splashes.
2017-11-26Game Maker Studio: How to Stack & Use Objects in you’re game.
2017-11-23Game Maker Studio: How to Create Checkpoints in you’re game.
2017-11-19Game Maker Studio: How to Create Random Objects, Instances & Timing Objects Out.
2017-11-18Game Maker Studio: How to Animate an Object, using a Path, Alarms, & Images.



Tags:
android
device
pc
windows
random
object
question
mark
produce
choice
collect
click
moves
move
block
game
maker
studio
code
reverse
direction
collision
grape
cherry
banana
orange
range
create
learn
teach
how
else
press
mouse
blick
if