E
Erik131313
Guest
Hi,
An object is rectangle with 2 little rounds (see picture).
When my mouse meet the object (rectangle or rounds), I can move the objet on the screen "if position_meeting(mouse_x, mouse_y, global.rect[0]) and mouse_check_button_pressed(mb_left)". It use the collision mask that I can modify.
When my mouse meets a round of the object, I want do something and when my mouse meets the rectangle of my objet, I wand do something else. How should I do it ?
Is it possible to use 2 or 3 différent collision masks on the same objet ?
I can compare the x and y of my objet and my mouse but it's not easy to do.
An object is rectangle with 2 little rounds (see picture).
When my mouse meet the object (rectangle or rounds), I can move the objet on the screen "if position_meeting(mouse_x, mouse_y, global.rect[0]) and mouse_check_button_pressed(mb_left)". It use the collision mask that I can modify.
When my mouse meets a round of the object, I want do something and when my mouse meets the rectangle of my objet, I wand do something else. How should I do it ?
Is it possible to use 2 or 3 différent collision masks on the same objet ?
I can compare the x and y of my objet and my mouse but it's not easy to do.
Attachments
-
595 bytes Views: 2