spr_d4sh
0
-1
0
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
Atimer = 0;
moveSpeed=global.AIspeed;
range=global.AIrange;
switch(global.AIchar)
{
case 0:
sprite_index = spr_bl1nk;
break;
case 1:
sprite_index = spr_cr4sh;
break;
case 2:
sprite_index = spr_d4sh;
break;
case 3:
sprite_index = spr_b4sh;
break;
}
image_speed= 0.2;
team = 0;
bounce= global.AIbounce;
scr_makeBalls();
dashing = false;
global.AIhealth = 80;
1
603
7
0
0
-1
2
self
0
0
1
sprite_index = spr_d4sh;
dashing = false;
image_speed=0.2;
1
603
7
0
0
-1
2
self
0
0
1
near = instance_nearest(x,y,obj_ball);
if(distance_to_object(near) < 10 and near.team != team and Atimer > 10)
{
global.AIhealth -= 8;
Atimer = 0;
}
if( global.AIhealth <= 0 )
{
instance_deactivate_all( false );
with(obj_Mwin)visible = true;
instance_create(room_width/2, room_height/2, obj_Mwin);
instance_create(room_width/2, room_height/1.5, obj_quit);
}
Atimer ++;
1
603
7
0
0
-1
2
self
0
0
1
var h_move = gamepad_axis_value(team, gp_axislh);
var v_move = gamepad_axis_value(team, gp_axislv);
if abs(speed) > 0
{
friction=0.5;
}
else
{
friction=0;
}
if ((h_move != 0) || (v_move != 0))
{
hspeed += h_move;
vspeed += v_move;
}
if(!dashing){
if(hspeed > 10*moveSpeed) hspeed = 10*moveSpeed;
if(hspeed < -10*moveSpeed) hspeed = -10*moveSpeed;
if(vspeed > 10*moveSpeed) vspeed = 10*moveSpeed;
if(vspeed < -10*moveSpeed) vspeed = -10*moveSpeed;
}
else
{
if(hspeed > 50) hspeed = 50;
if(hspeed < -50) hspeed = -50;
if(vspeed > 50) vspeed = 50;
if(vspeed < -50) vspeed = -50;
}
gamepad_set_axis_deadzone(team, 0.2);
gamepad_set_button_threshold(team, 0.1);
var h_point = gamepad_axis_value(team, gp_axislh);
var v_point = gamepad_axis_value(team, gp_axislv);
if(h_move < 0) image_xscale = -1;
else if(h_move > 0) image_xscale = 1;
if(gamepad_button_check_pressed(team,gp_shoulderlb))
{
switch(global.AIchar){
case 0:
scr_teleport();
break;
case 1:
scr_disrupt();
break;
case 2:
scr_sprint();
break;
case 3:
scr_deflect();
break;
}
}
if(gamepad_button_check_pressed(team,gp_start))
{
instance_deactivate_all( false );
instance_create( room_width/2, room_height/2, obj_pause );
instance_create( room_width/2, room_height/1.5, obj_quit );
}
1
603
7
0
0
-1
2
self
0
0
1
1
115
0
0
0
-1
1
action_bounce
self
0
0
4
1
4
0
1
603
7
0
0
-1
2
self
0
0
1
draw_healthbar(obj_playerA.x-50, obj_playerA.y-50, obj_playerA.x+50, obj_playerA.y-40, global.AIhealth, c_black, c_red, c_blue, 0, false, true);
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
0