Advertisement
degualt

Autotiling system

Apr 15th, 2019
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///scr_ts();
  2. var obj=argument[0];
  3. var tl=argument[1];
  4.  
  5. var tl_w=background_get_width(tl);
  6. var tl_h=background_get_height(tl);
  7.  
  8. for (var row=0; row<obj.image_yscale; row++){
  9.     for (var col=0; col<obj.image_xscale; col++){
  10.         tile_add(tl,0,0,tl_w,tl_h,obj.x+(col*tl_w),obj.y+(row*tl_h),obj.depth);
  11.     }
  12. }
  13.  
  14. ///Create the tiles on top of the wall/slope
  15. scr_ts(id,ts_1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement