I'm creating a puzzle type game in which certain sprites are being created on the start of the layout. So in that, there are 2 arrays, one stores all of the coordinates(on which all of the sprites will be spawn) present in the layout whereas the other one stores the co-ordinates on which certain sprites will be spawned. My question is, how can I create the sprites on the co-ordinates stored in the 2nd Array?
Develop games in your browser. Powerful, performant & highly capable.
It depends a little on how exactly it's set up but roughly:
On start of layout
Array for each Element X -> Create object (by name) Name:Array.At(Array.CurX,0), X: Array.At(Array.CurX,1), Y: Array.At(Array.CurX,2)
Thanks!!!