Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //when objenemybasic collides with objsword
- if(!hit)
- hit=true; sound_play(HitSnd) sound_stop(SwdSnd);
- pushback = 50
- x += lengthdir_x(pushback,point_direction(x,y,other.x,
- other.y)+180);
- y += lengthdir_y(pushback,point_direction(x,y,other.x,
- other.y)+180);
- //when objenemybasic collides with objwall
- if(place_meeting(objectEnemyBasic.x+1,objectEnemyBasic.y+1,objWall))x += lengthdir_x(pushback,point_direction(x,y,other.x,
- other.y)+90);
- if(place_meeting(objectEnemyBasic.x+1,objectEnemyBasic.y+1,objWall))y += lengthdir_y(pushback,point_direction(x,y,other.x,
- other.y)+90);
- //in the events area, the objwall collision is above the objsword collision if that makes any difference. doesn't appear to be movable.
Add Comment
Please, Sign In to add comment