(First time posting. Correct me if i'm doing anything wrong)
The scenario is: I have a planet sprite and a player sprite. I want the planet sprite to turn green when the player sprite gets close.
Player obj is controlled by arrow keys and moves about the room. Both collision masks are set to precise by frame.
following code is in step event in planet object:
if ( distance_to_point ( obj_player.x, obj_player.y )<80){
image_blend=c_lime;
}
Player turns green when player enters a box around the planet. Almost as if the collision mask was set to rectangle and not the precise image of a round planet. wondering if this method isnt based on collision masks? The documentation makes me believe it should be. Any help or workarounds would be appreciated.
The scenario is: I have a planet sprite and a player sprite. I want the planet sprite to turn green when the player sprite gets close.
Player obj is controlled by arrow keys and moves about the room. Both collision masks are set to precise by frame.
following code is in step event in planet object:
if ( distance_to_point ( obj_player.x, obj_player.y )<80){
image_blend=c_lime;
}
Player turns green when player enters a box around the planet. Almost as if the collision mask was set to rectangle and not the precise image of a round planet. wondering if this method isnt based on collision masks? The documentation makes me believe it should be. Any help or workarounds would be appreciated.