Commit 12733de1 authored by abradat's avatar abradat
Browse files

added manual control for trailer build

parent d51dae82
......@@ -39,7 +39,7 @@ if(global.started && !global.pause) {
global.stamina -= 0.18
}
if(global.ghost_player_x - global.real_player_x > 260) {
global.lost = true;
}
//if(global.ghost_player_x - global.real_player_x > 260) {
// global.lost = true;
//}
}
......@@ -8,6 +8,10 @@ jump = 0;
inJump = 0;
ySize = 16;
xSize = 8;
left = 0;
right = 0;
left_released = 0;
right_released = 0;
previousStatus = 0; // 0: idle, 1: Right, 2: Jump, -1: Left
previousDirection = 1; // 1: Right Direction, -1: Left Direction
......
......@@ -37,6 +37,10 @@ jump = keyboard_check_pressed(ord("J"));
//jumpHoldReleased = keyboard_check_released(vk_space);
chargeDown = keyboard_check(ord("F"));
chargeReleased = keyboard_check_released(ord("F"));
left = keyboard_check(vk_left);
right = keyboard_check(vk_right);
left_released = keyboard_check(vk_left);
right_released = keyboard_check(vk_right);
if(chargeDown && global.charge <= global.chargeMax) {
global.charge += chargeIncrease;
......@@ -58,7 +62,12 @@ if(global.started && !global.pause) {
if(global.time / 60 >= 81 || global.stamina <= 0) {
hspeed = 0;
} else {
hspeed = vx;
if(left == 1) {
x += -vx;
} else if(right == 1) {
x += vx;
}
}
}
if(global.pause) {
......
......@@ -3,7 +3,7 @@
"volume": 1.0,
"parentRoom": null,
"views": [
{"inherit":false,"visible":true,"xview":0,"yview":40,"wview":512,"hview":384,"xport":0,"yport":0,"wport":1024,"hport":768,"hborder":256,"vborder":60,"hspeed":-1,"vspeed":-1,"objectId":{"name":"obj_player_ghost","path":"objects/obj_player_ghost/obj_player_ghost.yy",},},
{"inherit":false,"visible":true,"xview":0,"yview":40,"wview":512,"hview":384,"xport":0,"yport":0,"wport":1024,"hport":768,"hborder":100,"vborder":60,"hspeed":-1,"vspeed":-1,"objectId":{"name":"obj_player_auto","path":"objects/obj_player_auto/obj_player_auto.yy",},},
{"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,},
{"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,},
{"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,},
......@@ -3,7 +3,7 @@
"volume": 1.0,
"parentRoom": null,
"views": [
{"inherit":false,"visible":true,"xview":0,"yview":40,"wview":512,"hview":384,"xport":0,"yport":0,"wport":1024,"hport":768,"hborder":256,"vborder":-50,"hspeed":-1,"vspeed":-1,"objectId":{"name":"obj_player_ghost","path":"objects/obj_player_ghost/obj_player_ghost.yy",},},
{"inherit":false,"visible":true,"xview":0,"yview":40,"wview":512,"hview":384,"xport":0,"yport":0,"wport":1024,"hport":768,"hborder":200,"vborder":50,"hspeed":-1,"vspeed":-1,"objectId":{"name":"obj_player_auto","path":"objects/obj_player_auto/obj_player_auto.yy",},},
{"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,},
{"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,},
{"inherit":false,"visible":false,"xview":0,"yview":0,"wview":1366,"hview":768,"xport":0,"yport":0,"wport":1366,"hport":768,"hborder":32,"vborder":32,"hspeed":-1,"vspeed":-1,"objectId":null,},
......@@ -16,7 +16,7 @@
{"instances":[],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"F_Particle","tags":[],"resourceType":"GMRInstanceLayer",},
{"instances":[],"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Particle","tags":[],"resourceType":"GMRInstanceLayer",},
{"instances":[
{"properties":[],"isDnd":false,"objectId":{"name":"obj_player_ghost","path":"objects/obj_player_ghost/obj_player_ghost.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":64.0,"y":392.0,"resourceVersion":"1.0","name":"inst_C44F76D","tags":[],"resourceType":"GMRInstance",},
{"properties":[],"isDnd":false,"objectId":{"name":"obj_player_ghost","path":"objects/obj_player_ghost/obj_player_ghost.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":72.0,"y":408.0,"resourceVersion":"1.0","name":"inst_C44F76D","tags":[],"resourceType":"GMRInstance",},
],"visible":true,"depth":200,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":4,"gridY":8,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"for_map","tags":[],"resourceType":"GMRInstanceLayer",},
{"instances":[
{"properties":[],"isDnd":false,"objectId":{"name":"obj_block","path":"objects/obj_block/obj_block.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":23.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":0.0,"y":48.0,"resourceVersion":"1.0","name":"inst_34B53FA5_1","tags":[],"resourceType":"GMRInstance",},
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment