I've got an array called objects
contains say monster 1 and monster 2
I've 2 objects setup called monster1 and monster 2
How would I pick a random monster from the array and display on the screen at the start of the layout.
Develop games in your browser. Powerful, performant & highly capable.
You would need to create an if statement picking the correct monster.
OR you could put all monsters in a family and pick a random family member.