S
Stratos.la
Guest
so i have some boxes that pop up and tried clamping them to the room. even though i have set the collision mask and physics collision shape to the exact size when they get to the sides of the screen they stop in their x ( middle_center) .i cant seem to figure out why! when they collide with each other they stop right on their edge just fine.
step event code for clamping
step event code for clamping
GML:
phy_position_x = clamp(phy_position_x,camera_get_view_x(view_camera[0]),camera_get_view_x(view_camera[0]) + camera_get_view_width(view_camera[0]));