aggressive_avians/objects/player/Step_0.gml

79 lines
2.6 KiB
Text
Raw Normal View History

2024-12-04 23:41:04 +00:00
/// @DnDAction : YoYo Games.Common.Variable
/// @DnDVersion : 1
/// @DnDHash : 34BF93A5
/// @DnDInput : 2
/// @DnDArgument : "expr" "keyboard_check(vk_right) - keyboard_check(vk_left)"
/// @DnDArgument : "expr_1" "move_x * move_speed"
/// @DnDArgument : "var" "move_x"
/// @DnDArgument : "var_1" "move_x"
move_x = keyboard_check(vk_right) - keyboard_check(vk_left);
move_x = move_x * move_speed;
/// @DnDAction : YoYo Games.Collisions.If_Object_At
/// @DnDVersion : 1.1
/// @DnDHash : 494A049B
/// @DnDArgument : "x_relative" "1"
/// @DnDArgument : "y" "2"
/// @DnDArgument : "y_relative" "1"
/// @DnDArgument : "object" "obj_grass"
/// @DnDSaveInfo : "object" "obj_grass"
var l494A049B_0 = instance_place(x + 0, y + 2, [obj_grass]); if ((l494A049B_0 > 0)) { /// @DnDAction : YoYo Games.Common.Variable
/// @DnDVersion : 1
/// @DnDHash : 64AD3710
/// @DnDParent : 494A049B
/// @DnDArgument : "var" "move_y"
move_y = 0;
/// @DnDAction : YoYo Games.Mouse & Keyboard.If_Key_Down
/// @DnDVersion : 1
/// @DnDHash : 79991EE3
/// @DnDParent : 494A049B
var l79991EE3_0; l79991EE3_0 = keyboard_check(vk_space); if (l79991EE3_0) { /// @DnDAction : YoYo Games.Common.Variable
/// @DnDVersion : 1
/// @DnDHash : 7E650206
/// @DnDParent : 79991EE3
/// @DnDArgument : "expr" "-jump_speed"
/// @DnDArgument : "var" "move_y"
move_y = -jump_speed; } }
/// @DnDAction : YoYo Games.Common.Else
/// @DnDVersion : 1
/// @DnDHash : 15C6CBAD
else { /// @DnDAction : YoYo Games.Common.If_Variable
/// @DnDVersion : 1
/// @DnDHash : 6AA2EA0B
/// @DnDParent : 15C6CBAD
/// @DnDArgument : "var" "move_y"
/// @DnDArgument : "op" "1"
/// @DnDArgument : "value" "10"
if(move_y < 10) { /// @DnDAction : YoYo Games.Common.Variable
/// @DnDVersion : 1
/// @DnDHash : 458EFD55
/// @DnDParent : 6AA2EA0B
/// @DnDArgument : "expr" "1"
/// @DnDArgument : "var" "move_y"
move_y = 1; } }
/// @DnDAction : YoYo Games.Movement.move_and_collide
/// @DnDVersion : 1
/// @DnDHash : 5E3ED0F6
/// @DnDArgument : "xvel" "move_x"
/// @DnDArgument : "yvel" "move_y"
/// @DnDArgument : "maxxmove" "0"
/// @DnDArgument : "maxymove" "0"
/// @DnDArgument : "object" "obj_grass"
/// @DnDSaveInfo : "object" "obj_grass"
move_and_collide(move_x, move_y, obj_grass,4,0,0,0,0);
/// @DnDAction : YoYo Games.Common.If_Variable
/// @DnDVersion : 1
/// @DnDHash : 5A51BEC1
/// @DnDArgument : "var" "move_x"
/// @DnDArgument : "not" "1"
if(!(move_x == 0)) { /// @DnDAction : YoYo Games.Common.Variable
/// @DnDVersion : 1
/// @DnDHash : 38DDDEF6
/// @DnDParent : 5A51BEC1
/// @DnDArgument : "expr" "sign(move_x)"
/// @DnDArgument : "var" "image_xscale"
image_xscale = sign(move_x); }