Sorry I wasn't clear.
Let me repeat the main part:
Question: How do I make it so when a "cell" object from spr_cell_group hits a "plant" object from spr_plant_group, the plant and cell in the individual collision are referenced correctly and the 'food' is provided from THAT plant to THAT cell ?
I basically want to check:
IF a cell hits a plant, feed the cell the plant.food value. Kill the plant.
What's happening is as I found out, the code is somehow returning the cell's own food and the result is the cell's .food rises exponentially (instead of eating 20 food, it's eating, 100 whatever it has left, at the time of collision).
Let me repeat the main part:
Question: How do I make it so when a "cell" object from spr_cell_group hits a "plant" object from spr_plant_group, the plant and cell in the individual collision are referenced correctly and the 'food' is provided from THAT plant to THAT cell ?
I basically want to check:
IF a cell hits a plant, feed the cell the plant.food value. Kill the plant.
What's happening is as I found out, the code is somehow returning the cell's own food and the result is the cell's .food rises exponentially (instead of eating 20 food, it's eating, 100 whatever it has left, at the time of collision).