if instance_exists(oCharacter) { if (myid == 0) { if ((direction == 0 || direction == 45 || direction == 315) && oCharacter.xVel > 0) x += oCharacter.xVel if ((direction == 180 || direction == 135 || direction == 225) && oCharacter.xVel < 0) x += oCharacter.xVel if (direction == 270 && oCharacter.yVel > 0) y += oCharacter.yVel } else { if ((direction == 0 || direction == 45 || direction == 315) && velX > 0) x += velX if ((direction == 180 || direction == 135 || direction == 225) && velX < 0) x += velX if (direction == 270 && velY > 0) y += velY } } if smissile speed += 0.5 if (y > global.waterlevel && global.waterlevel != 0) { if (inwater == 0) instance_create(x, global.waterlevel, oSmallSplash) inwater = 1 } else { if (inwater == 1) instance_create(x, global.waterlevel, oSmallSplash) inwater = 0 } if instance_exists(oClient) { if (ds_list_size(oClient.roomListData) > 0) { if (x > (room_width + 100) || x < -100 || y > (room_height + 100) || y < -100) { instance_destroy() trail.speed = speed trail.alarm[0] = 30 with (flame) instance_destroy() } } else if (x < ((view_xview[0] - 48) - (oControl.widescreen_space / 2)) || x > (((view_xview[0] + view_wview[0]) + 48) + (oControl.widescreen_space / 2)) || y < (view_yview[0] - 48) || y > ((view_yview[0] + view_hview[0]) + 48)) { instance_destroy() trail.speed = speed trail.alarm[0] = 30 with (flame) instance_destroy() } } else if (x < ((view_xview[0] - 48) - (oControl.widescreen_space / 2)) || x > (((view_xview[0] + view_wview[0]) + 48) + (oControl.widescreen_space / 2)) || y < (view_yview[0] - 48) || y > ((view_yview[0] + view_hview[0]) + 48)) { instance_destroy() trail.speed = speed trail.alarm[0] = 30 with (flame) instance_destroy() } trail.x = x trail.y = y if instance_exists(flame) { flame.x = x flame.y = y }