skip navigation
Game Plague Forums
Not a member? ( Register )
User Name: Password:
another question - Showing Replies by Iasper
Pages: [1] -
Pazaza
06/17/12 01:39 am - Last edited 06/20/12 11:01 am by PazazaFilter

Dualer


Awards:

Group: Member
Posts: 210
how would one make a game like simon in gamemaker? iv'e been wanting to make something like that, and am having trouble. any hints would be appreciated. thank you

------------
WHAAAAA....!!???!
Showing Replies by Iasper - Return to Full Replies
Iasper
06/17/12 07:02 amFilter - Reply #1

Dual Master


Awards:

Group: Member
Posts: 1099
Your best go would be using arrays and a random number generator. Say, you have 4 colors. 0 is red, 1 is blue, 2 is green and 3 is yellow. Add another variable called i and set it to 1. Now, do this: color[i-1]=choose(0,1,2,3) This adds a random color to the list of colors. Everytime you want to add a color, increase i by one and then run that small piece of code again. If you run it without increasing i first, you'll overwrite the last color, so be careful :)

------------
Pages: [1] -