I have 9 tile backgrounds (as shown in the picture), how can I spawn a sprite/player on a random tiled background?
Thanks so much in advance!
Develop games in your browser. Powerful, performant & highly capable.
Give the tiled background an instance var and number each one 1-9.
Set local variable to choose(1,2,3,4,5,6,7,8,9)
Pick tiled background where tiled background variable=local variable, set player to tiled background position.
Thanks!