How to chase and change material,How to chase an object and change material on touch with AI?
I am trying to make purple capsules chase after yellow capsules, then when a purple touches a yellow, the yellow capsule turns to purple and chase after other yellow capsules (like a zombie infection).
Te only problem is that I have no idea of what I am doing. I don't now how to talk to unity. The only thing I know is that if it is purple then it chases after yellow, if it touches yellow then yellow turns to purple and back to square one.
Somebody told me I could use tags and even tough I googled some answers or something that could help me, nothing works.
Please help....please
please ,I am trying to make purple capsules chase after yellow capsules, and when they "catch" them the yellow capsules will turn to purple capsules and now go and chase other yellow capsules (like zombies)
The only problem is that I have no idea of what I am doing. I thought I could do it with tags. The objects whit "Purple" tag should chase the ones with "Yellow" Tag and when they touch then the object with "Yellow" tag will change to "Purple" and adopt the purple capsule functions (chasing and transforming other yellow capsules)
Let me understand this a little bit more. What don't you understand? The logic to make this work or to write the script(s) needed to do this?
Your answer
Follow this Question
Related Questions
Similar looking base and globe model 0 Answers
How do I configure A*? 1 Answer
My enemy ai won't stay on the ground help please 0 Answers
Change cube texture script 1 Answer
How to make the AI use the grid 1 Answer