Guest User

Untitled

a guest
Sep 8th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if !place_meeting(x,y+_yspd,par_floor)
  2.     _yspd += .25;
  3.  
  4. repeat (abs(_yspd)) {
  5.     y += sign(_yspd);
  6.     if place_meeting(x,y,par_floor) {
  7.         _yspd = -_yspd/1.1; }
  8.     if (place_meeting(x,y,par_enemy)) {
  9.         ID = instance_create(x,y,obj_blast);
  10.         ID._blastradius = _blastradius;
  11.         ID._damage = _damage;      
  12.         instance_destroy(); } }
  13.  
  14. repeat (abs(_xspd)) {
  15.     x += sign(_xspd);
  16.     if place_meeting(x,y,par_floor) {
  17.         _xspd = -_xspd/1.1; }
  18.     if (place_meeting(x,y,par_enemy)) {
  19.         ID = instance_create(x,y,obj_blast);
  20.         ID._blastradius = _blastradius;
  21.         ID._damage = _damage;      
  22.         instance_destroy(); } }
Add Comment
Please, Sign In to add comment