Ember

Execute

May 16th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //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
  2.  
  3. //First, pick a random array
  4. i = round(random(spawn));
  5.  
  6. //Now, just add coins at the random array
  7. instance_create(spawn[i,0]-25,spawn[i,1]-25,OBJECT_COIN);
  8. instance_create(spawn[i,0]+25,spawn[i,1]-25,OBJECT_COIN);
  9. instance_create(spawn[i,0],spawn[i,1]+25,OBJECT_COIN);
Advertisement
Add Comment
Please, Sign In to add comment