I
itai singer
Guest
hi, thanks for viewing my thread.
I made in my game a kind of poison puddle and i want that every time it collides with an object, if the object's variable is_character = true it will poison him.
so here is what i got so far:
if (place_meeting(x,y,all))
{
if(other.is_char)
{
other.poison = 10;
}
}
notice that i know "other" would not work here. so the question is, how can i do code with the object the poison is colliding with?
p.s.: is know i can just use the collide event but that means that i will need to have separate event for each char object, and im sure there is a better way.
I made in my game a kind of poison puddle and i want that every time it collides with an object, if the object's variable is_character = true it will poison him.
so here is what i got so far:
if (place_meeting(x,y,all))
{
if(other.is_char)
{
other.poison = 10;
}
}
notice that i know "other" would not work here. so the question is, how can i do code with the object the poison is colliding with?
p.s.: is know i can just use the collide event but that means that i will need to have separate event for each char object, and im sure there is a better way.