Pazaza | 06/17/12 01:39 am - Last edited 06/20/12 11:01 am by Pazaza | Filter |
|
 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....!!???! |
|
| |
| This reply has been hidden.
|
| |
| |
| This reply has been hidden.
|
| |
Iasper | |
 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 :)
------------
|
|
GoldenGoshawk | |
 Pyco Artist
    
Awards:
  Group: Member Posts: 697
| Who is simon? o.o
------------
|
|
Bouncy Ball | |
 Champion
  
Awards:
  Group: Mod Posts: 4057
| simon says
------------
|
|
Pazaza | 06/17/12 11:31 pm - Last edited 06/20/12 11:02 am by Pazaza | Filter - Reply #6 |
|
 Group: Member
| QUOTE: GoldenGoshawk Who is simon? o.o
its the game with the four colors and it lights up in various patterns. and how would i incoorprate this into a game like zelda, where it releases enemies after showing the patteren and locks the buttons. then after you defeate the enemies, it unlocks and you do the patteren, and after two or three times of this, it unlocks the door? |
|