Advertisement
Sandsky0

path_shape();

Aug 7th, 2014
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // This script creates objects along a specified path
  2.  
  3. // argument0 = path name
  4. // argument1 = number of objects to be used in shape
  5. // argument2 = angle of path/shape
  6. // argument3 = size of the shape (1 is original size)
  7. // argument4 = object used in the shape
  8.  
  9. for(i=1; i<=argument1; i+=1){
  10.  
  11. a = instance_create(x,y,argument4);
  12.  
  13. with(a){
  14. b = path_start(argument0,0.00000000000000000000001,1,false);
  15. b.path_orientation = argument2;
  16. b.path_scale = argument3;
  17. }
  18.  
  19. a.path_position = i/argument1;
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement