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.
12 lines
442 B
12 lines
442 B
var yoff;
|
|
if (yVel <= 0)
|
|
{
|
|
yoff = (-1 + (yVel * 2))
|
|
if (collision_line(x, (y + collisionBoundsOffsetTopY), x, ((y + collisionBoundsOffsetTopY) + yoff), oSolid, true, true) == -4)
|
|
{
|
|
if (collision_line(((x + collisionBoundsOffsetRightX) - 1), (y + collisionBoundsOffsetTopY), ((x + collisionBoundsOffsetRightX) - 1), ((y + collisionBoundsOffsetTopY) + yoff), oSolid, true, true) > 0)
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|