playMaker

Author Topic: Memory Game  (Read 1987 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Memory Game
« on: November 21, 2014, 07:05:16 AM »
Hi! I was thinking that my next game should be a kind of a memory game. And I have already started to look at it. But I have a problem I don't know how to solve. I have a board with for example 10 random points I use as a child for the objects which will appear randomly on these points. First time only one object will be created randomly. And then I need to click on it, then two new objects will be created, and then three, four, and so on. But sometimes it creates two objects at the same random point. I don't want that. I have tried different ways, but can't make it. Does somebody know a way to do this?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

elvis75k

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 97
    • nRender
Re: Memory Game
« Reply #1 on: November 21, 2014, 12:31:56 PM »
Your best friend here is "Get Next Random Int" action.
Search here and try to make some loops with nested loops; one for the items and one for their position. This is what i've used to make things always random. Hope it's clear, cheers.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Memory Game
« Reply #2 on: November 21, 2014, 12:47:47 PM »
you can find it Here
i can't find it on the Ecosystem tho

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Memory Game
« Reply #3 on: November 21, 2014, 01:22:20 PM »
Thank you very much, both of you. I have installed the Action. Now Time to experiment. :-)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no