Y
YetAnotherGameDev
Guest
I want to make my player object change the colour of the ground when the player collides with it. I've put this code in my step event for the ground (for reference, the object is called obj_ground_1_normal):
if(place_meeting(x, y, obj_player_red))
{
instance_change(obj_ground_1_red, false);
}
Sometimes it works, sometimes it doesn't, and I don't know why. Please help.
if(place_meeting(x, y, obj_player_red))
{
instance_change(obj_ground_1_red, false);
}
Sometimes it works, sometimes it doesn't, and I don't know why. Please help.
Last edited by a moderator: