You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
531 B
23 lines
531 B
/// isCollisionUnmorph()
|
|
checkupl = position_meeting(x - 3, y - 27, oSolid);
|
|
checkupr = position_meeting(x + 3, y - 27, oSolid);
|
|
checkl = position_meeting(x - 6, y - 27, oSolid);
|
|
checkr = position_meeting(x + 6 - 1, y - 27, oSolid); // BUGFIX
|
|
if (checkl == 1 && checkr == 1) {
|
|
return 0;
|
|
exit;
|
|
}
|
|
if (checkl == 0 && checkr == 0 && checkupl == 0 && checkupr == 0) {
|
|
return 1;
|
|
exit;
|
|
}
|
|
if (checkupr == 0 && checkr == 1) {
|
|
return 2;
|
|
exit;
|
|
}
|
|
if (checkupl == 0 && checkl == 1) {
|
|
return 3;
|
|
exit;
|
|
}
|
|
return 0;
|