The point of SpriteFonts, is to make your own and not rely on fonts being on the OS. The built in spritefont is only a demo.
Develop games in your browser. Powerful, performant & highly capable.
You can't generate variable names dynamically. You could use an array or dictionary for your data.
On mouse click: play sound1
On ended sound1: play sound2
Use "On ended" to get triggered when the first sound ends.
Set the animation first, which lets you start at the beginning.
A Dictionary is a collection of Key/Value pairs. You would use the users name as the key, and the value as the password. Each user can have their own data. You store the Dictionary to LocalStorage and load it back again when the game restarts. This keeps all users and passwords together. The manual covers the basics. There is a tutorial here: https://www.scirra.com/tutorials/4836/n ... dictionary
You could use a Dictionary saved via LocalStorage.
Good point.
You could use Pick by UID choose(uid1,uid2), where uid1 & uid2 are the actual UIDs of your two arrays.
Two issues: if num1=0 and num2=0, nothing is shown.
Shuffle is being called repeatedly in event 57 as i=4.
Double check your logic.
Get rid of the "Wait 0"s.
To be more generic, just save the name of the song in event 8, then play with that same variable at event 4.
Member since 28 May, 2012