I NEED HELP PLEASE!!!

WeswogWeswog Member Posts: 1,171
edited November -1 in Working with GS (Mac)
I am trying to make a matching game and I need help on making the cards be random each time played and I also need help on how I can make the matching work where it knows if two cards match or don't match.

Thanks in advanced, Weswog

Comments

  • WeswogWeswog Member Posts: 1,171
    I got the part if cards match don't match down now and found out how to do it. I just need help on how to have cards in random order each time played.

    Cheers, Weswog
  • ORBZORBZ Member Posts: 1,304
    when the game starts, on the title screen, have the random() function being called inside a timer loop every 0.001 seconds.

    that will seed the randomization with because the random function will have been called a random number of times. i.e. the number of microseconds from game load to user presses start.
  • synthesissynthesis Member Posts: 1,693
  • WeswogWeswog Member Posts: 1,171
    I tried using that but I need a lot more cards than what it showed so I messed it up and when it spawns it spawns across the screen.
    I'm also sorry for posting but, I needed the info quick.

    Cheers, Weswog
Sign In or Register to comment.