Specific collision masks? Cursor's current position?

Hi again,

  1. May I know if there’s a way to identify which collision mask in a sprite is being acted on during a collision?
  2. Is there a way to get the current x and y coordinates of the mouse cursor and/or touch?

Thanks.

  1. No, a workaround is to use an extra object, following the main object, so this extra object acts as the collision mask (check collision against this extra object).
  2. You can get the mouse position through the expressions “MouseX()” and “MouseY()”, these work for the default layer and camera, but you can use “MouseX(LayerName, CameraNumber)” too :slight_smile:

THANK YOU!!!