Hi all.
I’m making a hide and seek game where the user runs around an area and scans six QR codes (they can be the same QR code image but repeated six times in different places) to “collect” coins.
There isn’t too much information on using QR codes rather than Zap codes (or please point me in the right direction if I’ve missed it!) so I’m trying to work out how to script this?
I wanted to base it on the Archery Game Series tutorial where we can use the Score subsymbol to count and amend it from there, but how can I tell it what it’s counting are QR codes or how many times a QR code has been scanned?:
//Adds score value to existing score
score += scoreIncrement;
//If the score is equal to the end score set in parent, emit custom event to be used in parent
if(score == endScore){
//Emits custom event to be used in parent script
symbol.emit(“custom:end”);
Thank you in advance!