Hey corona community please help me to solve my problem that’s really disturbing me. I’ve questioned about random my objects (level1 = rectangles, level2 = big squares, and level3 = small squares)
Basically I want to randomly choose any level.
I create the drag and drop function to match the object color.
Ex. if level 1 is displaying the “big square” then I will drag the same color to get the right answer, at the end of level 1 it will delete the “big square” object and continue to random the last 2 levels between small square and rectangle.
My problem is I can’t solve the problem that each level can be displayed twice and I want to prevent it to happen
I put my objects value separately inside the game1setup.lua, game2setup.lua, and game3setup.lua
this is the link for my code: http://pastebin.com/A6ps1wKL [import]uid: 74725 topic_id: 12192 reply_id: 312192[/import]
[import]uid: 52491 topic_id: 12192 reply_id: 44394[/import]