Trying to move sprite1 to a random sprite2 but there is more than one sprite2s.
You can use arrays. Just set the posistion to the position of a random sprite in an array of sprite2 types.
@plierplierplier you might want to use an array:
- Go to Advanced
- Select Arrays.
- Create a number array
- Go to Images and take out an image (|_|) block.
- Drag it into the array. Repeat for each array selection.
- Put it into
On Start - Put a
On game update every __ ms thenand drag a set mySprite image to Get random value from myArray. Here is an example


Assemble the “sprite2” sprites into one big list, then you can use the “get random value from” to pick a random sprite2 from that array, get their x and y, and set sprite1 x and y to random sprite2’s x and y.
