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.
AM2Rogue/Export_Code/gml_Object_oCharacter_Colli...

28 lines
617 B

if ((state == BALL || state == AIRBALL || state == SPIDERBALL) && other.image_index == 1 && monster_drain == 0)
{
if (isCollisionTop(6) == 0)
yVel = -5
else if (isCollisionTop(5) == 0)
yVel = -4
else if (isCollisionTop(4) == 0)
yVel = -3
else if (isCollisionTop(3) == 0)
yVel = -2
else if (isCollisionTop(2) == 0)
yVel = -1
state = AIRBALL
sball = 0
statetime = 0
if (x < (other.x - 2))
{
facing = LEFT
fixedx = 12
}
if (x > (other.x + 2))
{
facing = RIGHT
fixedx = 12
}
fixedy = 20
}