Hello everyone, I'm having trouble assigning a sprite object to another sprite objects.
https://www.dropbox.com/s/n61pvuvthed9b ... a.png?dl=0
I have two sprites, a Human sprite and a button sprite. Whenever a new human sprite is created, it spawns 3 button sprites(with different image frames). Whenever I tap a button I want the human sprite to do a certain action depending on which button frame it is on. (e.g. If I (on tap tree button) Human sprite move to tree). The problem is that all the human sprites are doing the action whenever I press a button. I only want one of human sprites to do an action whenever one of it's buttons is touched.
So how can I make the buttons sprites work for only one human sprite?