sBlockBomb 0 -1 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 setCollisionBounds(-8, -8, 8, 8); makeActive(); state = 0; falling = 1; 1 603 7 0 0 -1 2 self 0 0 1 if (state == 0 && falling) { if (isCollisionBottom(5) == 0) yVel += 0.1; if (isCollisionBottom(5) > 0) { if (yVel > 0) yVel *= -0.4; if (abs(yVel) < 0.3) yVel = 0; if (collision_line(round(lb), round(bb + 4), round(rb - 1), round(bb + 4), oSlope1, true, true) > 0) { xVel -= 0.5; yVel *= 0.5; } if (collision_line(round(lb), round(bb + 4), round(rb - 1), round(bb + 4), oSlope2, true, true) > 0) { xVel += 0.5; yVel *= 0.5; } if (collision_line(round(lb), round(bb + 4), round(rb - 1), round(bb + 4), oSlope1B, true, true) > 0) { xVel -= 0.2; yVel *= 0.5; } if (collision_line(round(lb), round(bb + 4), round(rb - 1), round(bb + 4), oSlope2B, true, true) > 0) { xVel += 0.2; yVel *= 0.5; } xVel *= 0.9; } if (isCollisionTop(5) > 0 && yVel < 0) { yVel *= -1; xVel *= 0.9; } if (isCollisionRight(5) > 0 && xVel > 0 || isCollisionLeft(5) > 0 && xVel < 0) xVel *= -0.8; xVel = min(xVel, 6); xVel = max(xVel, -6); yVel = min(yVel, 6); yVel = max(yVel, -6); moveTo(xVel, yVel); image_angle += xVel * -2; } // if (state == 0 && falling) 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1