Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !place_meeting(x,y+_yspd,par_floor)
- _yspd += .25;
- repeat (abs(_yspd)) {
- y += sign(_yspd);
- if place_meeting(x,y,par_floor) {
- _yspd = -_yspd/1.1; }
- if (place_meeting(x,y,par_enemy)) {
- ID = instance_create(x,y,obj_blast);
- ID._blastradius = _blastradius;
- ID._damage = _damage;
- instance_destroy(); } }
- repeat (abs(_xspd)) {
- x += sign(_xspd);
- if place_meeting(x,y,par_floor) {
- _xspd = -_xspd/1.1; }
- if (place_meeting(x,y,par_enemy)) {
- ID = instance_create(x,y,obj_blast);
- ID._blastradius = _blastradius;
- ID._damage = _damage;
- instance_destroy(); } }
Add Comment
Please, Sign In to add comment