Skip to content

Commit

Permalink
fixes for collision
Browse files Browse the repository at this point in the history
  • Loading branch information
squidistaken committed Jan 21, 2023
1 parent ec45fc3 commit 59c9b40
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Y1B2 Game.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion objects/obj_plr1/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ switch global.playerControl
}



if (itemCarrying != noone) && (!global.carryingP2)
{
scr_carryItem();
Expand All @@ -94,6 +93,17 @@ switch global.playerControl
}
}

show_debug_message(mask_index);
switch global.carryingP2
{
case true:
mask_index = spr_carry_mask;
break
case false:
mask_index = spr_plr1_idle_front;
break
}


//pickup item
if (!pauseFrame) && (place_meeting(x,y,itemNear)) && (itemCarrying == noone) && (keyInteract) && (itemNear != obj_plr2.itemCarrying)
Expand Down
20 changes: 15 additions & 5 deletions rooms/rm_controls/rm_controls.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions rooms/rm_puzzle00/rm_puzzle00.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/scr_carryControl/scr_carryControl.gml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function carryPlayer2()
}

function resetPlayer2Carry(){ //reset plr 2 to original state
carryingP2 = false;
obj_plr2.grv = 0.5;
global.carryingP2 = false;
obj_plr1.moveSpeed = 5;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions sprites/spr_carry_mask/spr_carry_mask.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 59c9b40

Please sign in to comment.