If you want to know where to start, I suggest start by reading the Shootorials here on Kongregate. A spot the difference game is a good idea for a first game to make, though, so I’ll be happy to help you out.
I’ve never made a spot the difference game, but heres the logic I’d go through before making the game:
1. I’ll assume that you know enough of flash to create objects and such. If you start with your two drawn pictures, I would first make new objects for every difference there is.
2. Check the coordinates of a mouse click. I would do this by having an invisible object follow the mouse using the method startDrag(invisibleObject, true) and then doing a hitTest for every time the mouse is clicked between the invisible object and each difference.
3. Next, if it is real difference, I would change the difference back to normal by taking the incorrect movie clip, adding a frame of the real thing, and then do something like this:
if (!root.wrongPicture.isFound) {
if (root.invisibleObject.hitTest(_root.wrongPicture)) {
_root.wrongPicture.gotoAndStop(2);
_root.wrongPicture.isFound=true;
}
}
Where the 1st frame of the wrong picture is the wrong picture, and the 2nd one is corrected.
4. Next, I’d check to see if the mouse did not click on a wrong object, and then do whatever you want to do (play a buzzer, subtract a life, etc.) with this.
5. Thats really it for a spot the difference game. Good luck on your game evilKitty75!
|