Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Now, this function adds coins to a random array, it does not check if the array has already been set however, so coins may overlap
- //First, pick a random array
- i = round(random(spawn));
- //Now, just add coins at the random array
- instance_create(spawn[i,0]-25,spawn[i,1]-25,OBJECT_COIN);
- instance_create(spawn[i,0]+25,spawn[i,1]-25,OBJECT_COIN);
- instance_create(spawn[i,0],spawn[i,1]+25,OBJECT_COIN);
Advertisement
Add Comment
Please, Sign In to add comment