Zwrócić się w drugą stronę?
Kod kolizji goomby z graczem:
GML
if other.yVel>0 and other.y<y+5
{
other.yVel=-6-0.2*other.yVel
other.temporarilyInvincibleFromGoombas=1
instance_create(x,y,oGoombaDie)
instance_destroy()
}
else if( other.state=other.DUCKING )
{
xVel = -xVel;
if( xVel > 0 )
sprite_index=sGoombaRight
else
sprite_index=sGoombaLeft
}
else if other.temporarilyInvincibleFromGoombas=0
{
instance_create(other.x,other.y,oCharacterDie)
with other instance_destroy()
}