MrEpicIsHere777

Untitled

Jan 4th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. ///Drawing
  2.  
  3. //Surface
  4. if surface_exists(global.bbox)
  5. draw_surface_part(global.bbox,
  6. TLeft.x + wall_size, TLeft.y + wall_size,
  7. wall_width - (wall_size * 2), wall_height - wall_size,
  8. TLeft.x + wall_size, TLeft.y + wall_size);
  9.  
  10.  
  11. ///////TLeft///////
  12.  
  13. //Wall
  14. draw_sprite_ext(TLeft.sprite_index,0,
  15. TLeft.x + wall_size, TLeft.y,
  16. TLeft.image_xscale - (wall_size * 2), TLeft.image_yscale, 0,
  17. image_blend, image_alpha);
  18. //Corner
  19. draw_sprite_ext(spr_bat_BattleBoxCorner,0,
  20. TLeft.x, TLeft.y, 1, 1, 0, image_blend, image_alpha);
  21.  
  22.  
  23. ///////TRight///////
  24.  
  25. //Wall
  26. draw_sprite_ext(TRight.sprite_index,0,
  27. TRight.x, TRight.y + wall_size,
  28. TRight.image_xscale, TRight.image_yscale - (wall_size * 2), 0,
  29. image_blend, image_alpha);
  30. //Corner
  31. draw_sprite_ext(spr_bat_BattleBoxCorner,0,
  32. TRight.x, TRight.y, -1, 1, 0, image_blend, image_alpha);
  33.  
  34.  
  35. ///////BRight///////
  36.  
  37. //Wall
  38. draw_sprite_ext(BRight.sprite_index,0,
  39. BRight.x - wall_size, BRight.y,
  40. BRight.image_xscale + (wall_size * 2), BRight.image_yscale, 0,
  41. image_blend, image_alpha);
  42. //Corner
  43. draw_sprite_ext(spr_bat_BattleBoxCorner,0,
  44. BRight.x, BRight.y + wall_size, -1, -1, 0, image_blend, image_alpha);
  45.  
  46.  
  47. ///////BLeft///////
  48.  
  49. //Wall
  50. draw_sprite_ext(BLeft.sprite_index,0,
  51. BLeft.x, BLeft.y - wall_size,
  52. BLeft.image_xscale, BLeft.image_yscale + (wall_size * 2), 0,
  53. image_blend, image_alpha);
  54. //Corner
  55. draw_sprite_ext(spr_bat_BattleBoxCorner,0,
  56. BLeft.x, BLeft.y, 1, -1, 0, image_blend, image_alpha);
Add Comment
Please, Sign In to add comment