broken i give up, godo time
This commit is contained in:
parent
8e6135b068
commit
a42931099d
6 changed files with 107 additions and 18 deletions
|
@ -34,7 +34,7 @@
|
||||||
},
|
},
|
||||||
"name":"Aggressive Avians",
|
"name":"Aggressive Avians",
|
||||||
"resources":[
|
"resources":[
|
||||||
{"id":{"name":"platformer","path":"objects/platformer/platformer.yy",},},
|
{"id":{"name":"obj_grass","path":"objects/obj_grass/obj_grass.yy",},},
|
||||||
{"id":{"name":"player","path":"objects/player/player.yy",},},
|
{"id":{"name":"player","path":"objects/player/player.yy",},},
|
||||||
{"id":{"name":"Room1","path":"rooms/Room1/Room1.yy",},},
|
{"id":{"name":"Room1","path":"rooms/Room1/Room1.yy",},},
|
||||||
{"id":{"name":"crimson","path":"sprites/crimson/crimson.yy",},},
|
{"id":{"name":"crimson","path":"sprites/crimson/crimson.yy",},},
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"$GMObject":"",
|
"$GMObject":"",
|
||||||
"%Name":"platformer",
|
"%Name":"obj_grass",
|
||||||
"eventList":[],
|
"eventList":[],
|
||||||
"managed":true,
|
"managed":true,
|
||||||
"name":"platformer",
|
"name":"obj_grass",
|
||||||
"overriddenProperties":[],
|
"overriddenProperties":[],
|
||||||
"parent":{
|
"parent":{
|
||||||
"name":"Objects",
|
"name":"Objects",
|
||||||
|
@ -26,8 +26,11 @@
|
||||||
"properties":[],
|
"properties":[],
|
||||||
"resourceType":"GMObject",
|
"resourceType":"GMObject",
|
||||||
"resourceVersion":"2.0",
|
"resourceVersion":"2.0",
|
||||||
"solid":true,
|
"solid":false,
|
||||||
"spriteId":null,
|
"spriteId":{
|
||||||
|
"name":"grass",
|
||||||
|
"path":"sprites/grass/grass.yy",
|
||||||
|
},
|
||||||
"spriteMaskId":null,
|
"spriteMaskId":null,
|
||||||
"visible":true,
|
"visible":true,
|
||||||
}
|
}
|
|
@ -1,8 +1,14 @@
|
||||||
/// @DnDAction : YoYo Games.Movement.move_and_collide
|
/// @DnDAction : YoYo Games.Common.Variable
|
||||||
/// @DnDVersion : 1
|
/// @DnDVersion : 1
|
||||||
/// @DnDHash : 298D9BA3
|
/// @DnDHash : 44D05B1A
|
||||||
/// @DnDArgument : "xvel" "2"
|
/// @DnDInput : 4
|
||||||
/// @DnDArgument : "yvel" "2"
|
/// @DnDArgument : "expr" "4"
|
||||||
/// @DnDArgument : "object" "platformer"
|
/// @DnDArgument : "expr_1" "16"
|
||||||
/// @DnDSaveInfo : "object" "platformer"
|
/// @DnDArgument : "var" "move_speed"
|
||||||
move_and_collide(2, 2, platformer,4,0,0,-1,-1);
|
/// @DnDArgument : "var_1" "jump_speed"
|
||||||
|
/// @DnDArgument : "var_2" "move_x"
|
||||||
|
/// @DnDArgument : "var_3" "move_y"
|
||||||
|
move_speed = 4;
|
||||||
|
jump_speed = 16;
|
||||||
|
move_x = 0;
|
||||||
|
move_y = 0;
|
79
objects/player/Step_0.gml
Normal file
79
objects/player/Step_0.gml
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
/// @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);
}
|
1
objects/player/player.yy
generated
1
objects/player/player.yy
generated
|
@ -3,6 +3,7 @@
|
||||||
"%Name":"player",
|
"%Name":"player",
|
||||||
"eventList":[
|
"eventList":[
|
||||||
{"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":true,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",},
|
{"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":0,"isDnD":true,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",},
|
||||||
|
{"$GMEvent":"v1","%Name":"","collisionObjectId":null,"eventNum":0,"eventType":3,"isDnD":true,"name":"","resourceType":"GMEvent","resourceVersion":"2.0",},
|
||||||
],
|
],
|
||||||
"managed":true,
|
"managed":true,
|
||||||
"name":"player",
|
"name":"player",
|
||||||
|
|
12
rooms/Room1/Room1.yy
generated
12
rooms/Room1/Room1.yy
generated
|
@ -12,11 +12,6 @@
|
||||||
],
|
],
|
||||||
"isDnd":false,
|
"isDnd":false,
|
||||||
"layers":[
|
"layers":[
|
||||||
{"$GMRInstanceLayer":"","%Name":"Instances","depth":0,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"instances":[
|
|
||||||
{"$GMRInstance":"v1","%Name":"inst_5068146F","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_5068146F","objectId":{"name":"platformer","path":"objects/platformer/platformer.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":89.0,"scaleY":5.0,"x":0.0,"y":704.0,},
|
|
||||||
{"$GMRInstance":"v1","%Name":"inst_68EFB1BF","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_68EFB1BF","objectId":{"name":"platformer","path":"objects/platformer/platformer.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":35.0,"scaleY":5.0,"x":832.0,"y":640.0,},
|
|
||||||
{"$GMRInstance":"v1","%Name":"inst_21CE61C9","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_21CE61C9","objectId":{"name":"player","path":"objects/player/player.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"x":96.0,"y":608.0,},
|
|
||||||
],"layers":[],"name":"Instances","properties":[],"resourceType":"GMRInstanceLayer","resourceVersion":"2.0","userdefinedDepth":false,"visible":true,},
|
|
||||||
{"$GMRAssetLayer":"","%Name":"Assets_1","assets":[
|
{"$GMRAssetLayer":"","%Name":"Assets_1","assets":[
|
||||||
{"$GMRSpriteGraphic":"","%Name":"graphic_74CE0345","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_74CE0345","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"grass","path":"sprites/grass/grass.yy",},"x":0.0,"y":704.0,},
|
{"$GMRSpriteGraphic":"","%Name":"graphic_74CE0345","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_74CE0345","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"grass","path":"sprites/grass/grass.yy",},"x":0.0,"y":704.0,},
|
||||||
{"$GMRSpriteGraphic":"","%Name":"graphic_A32C8F1","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_A32C8F1","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"grass","path":"sprites/grass/grass.yy",},"x":64.0,"y":704.0,},
|
{"$GMRSpriteGraphic":"","%Name":"graphic_A32C8F1","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_A32C8F1","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"grass","path":"sprites/grass/grass.yy",},"x":64.0,"y":704.0,},
|
||||||
|
@ -50,7 +45,12 @@
|
||||||
{"$GMRSpriteGraphic":"","%Name":"graphic_69DE350A","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_69DE350A","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"dirt","path":"sprites/dirt/dirt.yy",},"x":1344.0,"y":704.0,},
|
{"$GMRSpriteGraphic":"","%Name":"graphic_69DE350A","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_69DE350A","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"dirt","path":"sprites/dirt/dirt.yy",},"x":1344.0,"y":704.0,},
|
||||||
{"$GMRSpriteGraphic":"","%Name":"graphic_5776D498","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_5776D498","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"dirt","path":"sprites/dirt/dirt.yy",},"x":1280.0,"y":704.0,},
|
{"$GMRSpriteGraphic":"","%Name":"graphic_5776D498","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_5776D498","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"dirt","path":"sprites/dirt/dirt.yy",},"x":1280.0,"y":704.0,},
|
||||||
{"$GMRSpriteGraphic":"","%Name":"graphic_1B89E9C2","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_1B89E9C2","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"dirt","path":"sprites/dirt/dirt.yy",},"x":1216.0,"y":704.0,},
|
{"$GMRSpriteGraphic":"","%Name":"graphic_1B89E9C2","animationSpeed":1.0,"colour":4294967295,"frozen":false,"headPosition":0.0,"ignore":false,"inheritedItemId":null,"inheritItemSettings":false,"name":"graphic_1B89E9C2","resourceType":"GMRSpriteGraphic","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"spriteId":{"name":"dirt","path":"sprites/dirt/dirt.yy",},"x":1216.0,"y":704.0,},
|
||||||
],"depth":100,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Assets_1","properties":[],"resourceType":"GMRAssetLayer","resourceVersion":"2.0","userdefinedDepth":false,"visible":true,},
|
],"depth":0,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Assets_1","properties":[],"resourceType":"GMRAssetLayer","resourceVersion":"2.0","userdefinedDepth":false,"visible":true,},
|
||||||
|
{"$GMRInstanceLayer":"","%Name":"Instances","depth":100,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"instances":[
|
||||||
|
{"$GMRInstance":"v1","%Name":"inst_5068146F","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_5068146F","objectId":{"name":"obj_grass","path":"objects/obj_grass/obj_grass.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":89.0,"scaleY":5.0,"x":0.0,"y":704.0,},
|
||||||
|
{"$GMRInstance":"v1","%Name":"inst_68EFB1BF","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_68EFB1BF","objectId":{"name":"obj_grass","path":"objects/obj_grass/obj_grass.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":35.0,"scaleY":5.0,"x":832.0,"y":640.0,},
|
||||||
|
{"$GMRInstance":"v1","%Name":"inst_21CE61C9","colour":4294967295,"frozen":false,"hasCreationCode":false,"ignore":false,"imageIndex":0,"imageSpeed":1.0,"inheritCode":false,"inheritedItemId":null,"inheritItemSettings":false,"isDnd":false,"name":"inst_21CE61C9","objectId":{"name":"player","path":"objects/player/player.yy",},"properties":[],"resourceType":"GMRInstance","resourceVersion":"2.0","rotation":0.0,"scaleX":1.0,"scaleY":1.0,"x":96.0,"y":608.0,},
|
||||||
|
],"layers":[],"name":"Instances","properties":[],"resourceType":"GMRInstanceLayer","resourceVersion":"2.0","userdefinedDepth":false,"visible":true,},
|
||||||
{"$GMRBackgroundLayer":"","%Name":"Backgrounds_1","animationFPS":15.0,"animationSpeedType":0,"colour":4279769112,"depth":200,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Backgrounds_1","properties":[],"resourceType":"GMRBackgroundLayer","resourceVersion":"2.0","spriteId":null,"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":false,"x":0,"y":0,},
|
{"$GMRBackgroundLayer":"","%Name":"Backgrounds_1","animationFPS":15.0,"animationSpeedType":0,"colour":4279769112,"depth":200,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Backgrounds_1","properties":[],"resourceType":"GMRBackgroundLayer","resourceVersion":"2.0","spriteId":null,"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":false,"x":0,"y":0,},
|
||||||
{"$GMRBackgroundLayer":"","%Name":"Background","animationFPS":15.0,"animationSpeedType":0,"colour":4278190080,"depth":300,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Background","properties":[],"resourceType":"GMRBackgroundLayer","resourceVersion":"2.0","spriteId":null,"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":false,"x":0,"y":0,},
|
{"$GMRBackgroundLayer":"","%Name":"Background","animationFPS":15.0,"animationSpeedType":0,"colour":4278190080,"depth":300,"effectEnabled":true,"effectType":null,"gridX":32,"gridY":32,"hierarchyFrozen":false,"hspeed":0.0,"htiled":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"inheritSubLayers":true,"inheritVisibility":true,"layers":[],"name":"Background","properties":[],"resourceType":"GMRBackgroundLayer","resourceVersion":"2.0","spriteId":null,"stretch":false,"userdefinedAnimFPS":false,"userdefinedDepth":false,"visible":true,"vspeed":0.0,"vtiled":false,"x":0,"y":0,},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue