gmc-jam-3/objects/obj_player/Keyboard_90.gml

48 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

action_set_relative(1);
if instance_exists(obj_talker)
{
exit;
}
var __b__;
__b__ = action_if_variable(blah, 3, 0);
if __b__
{
{
action_create_object_motion(obj_bullet_playerred, 0, 25, 25, 90);
action_create_object_motion(obj_bullet_player, 18, 0, 25, 90);
action_create_object_motion(obj_bullet_player, -18, 0, 25, 90);
__b__ = action_if_variable(keyboard_check(vk_shift), 0, 0);
if __b__
{
{
action_create_object_motion(obj_bullet_playerred, -40, 40, 25, 80);
action_create_object_motion(obj_bullet_playerred, 40, 40, 25, 100);
action_create_object_motion(obj_bullet_playerblue, -20, 50, 25, 105);
action_create_object_motion(obj_bullet_playerblue, 20, 50, 25, 75);
action_create_object_motion(obj_bullet_playerblue, 10, 50, 25, 80);
action_create_object_motion(obj_bullet_playerblue, -10, 50, 25, 100);
}
}
else
{
{
action_create_object_motion(obj_bullet_playerred, -40, 40, 25, 85);
action_create_object_motion(obj_bullet_playerred, 40, 40, 25, 95);
action_create_object_motion(obj_bullet_playerblue, -20, 50, 25, 80);
action_create_object_motion(obj_bullet_playerblue, 10, 50, 25, 95);
action_create_object_motion(obj_bullet_playerblue, -10, 50, 25, 85);
action_create_object_motion(obj_bullet_playerblue, 20, 50, 25, 100);
}
}
action_sound(snd_youshoot, 0);
{
action_set_relative(0);
blah = 0;
action_set_relative(1);
}
}
}
blah += 1;
action_set_relative(0);