• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - GML Visual Random object D&D

R

Redbow

Guest
Hey everybody. I am using only D&D. Is it possible to create random object after mouse clicked?

Nothing worked for me so Im trying to ask you.

Something like: Assign Variable in Create Event (on object I want to change after click) ......
Mouse Click Event - If Variable equal 1 = create object 1
- If variable equal 2 = create object 2
- If variable equal 3 = create object 3

But ... I dont know how to create random variable number.
Any ideas please?
 
Top