What's the error? Images keep repeating in memory game.
nitya

I followed the tutorials but still more two copies of images are shown when clicked on the cards.

All 5 Comments
nitya

And it is not working also... I mean no cards are displayed when index.html is opened.

nitya

And it is not working also... I mean no cards are displayed when index.html is opened.

Gio

A few separate problems there.

1. You are missing a line - after line 15 in cards.js you want

cards[choice].type = original;

2. You have added two scripts to the scene assets, one named cards and one named cards.js. There is no file named just cards, you want to remove that script from the scene

3. You cannot just click index.html to open the project - most browsers will block the execution of scripts on your local hard drive for security reasons. You need to host your file somewhere, e.g. a local (or remote) server. Please see this quick guide.

Riya845

yes i agree with gio...you are missing the same..

nitya

thank you....

Post a reply
Add Attachment
Submit Reply
Login to Reply