I have create a matching game. how to add text when clicked correct object show text "correct"
and when clicked wrong object show text wrong .... how i do this ple help
https://www.dropbox.com/s/ocarugwir84dy ... .capx?dl=0
Develop games in your browser. Powerful, performant & highly capable.
oosyrag I want to compare to images .. if i choose correct image text visible "correct"
If choose wrong text visible "wrong "
Ok you'll want all your different sprites as animation frames of a single sprite object.
For that sprite object, you want to add two instance variables: A numerical "Pair" variable, so you can determine which sprites are matches (each set of two should have a unique value greater than 0), and a "Selected" boolean, which you can toggle so you can't pick the same sprite twice.
You'll also need a single global variable, to keep track of which "Pair" is currently of interest.
Here are the events: