accessing info from what character collides with
andy_the_baker
Member Posts: 25
is there a way of accessing the info that a spawned character collides with? here's the scenario:
spawn a character, which automatically goes towards the enemy base. if it hits another enemy, then it attacks them. else if it gets to the base it attacks that. or if it bumps into a friendly, slow down to that speed.
also, another question: is it better to have one actor with a bunch of rules, or destroy/replace as needed? (spawn actor, destroy and replace with moving actor, destroy and replace with attack actor, etc.)
thanks.
spawn a character, which automatically goes towards the enemy base. if it hits another enemy, then it attacks them. else if it gets to the base it attacks that. or if it bumps into a friendly, slow down to that speed.
also, another question: is it better to have one actor with a bunch of rules, or destroy/replace as needed? (spawn actor, destroy and replace with moving actor, destroy and replace with attack actor, etc.)
thanks.
Comments
i'm starting to feel this project is too ambitious...
When creating a rule just set
actor->collides or overlaps-> other actor type
Then .......
but then i'm still left with one burning question: if there are 5 enemies on the screen, how do i know which one i bumped into?
thank you very much for the response.
It's much easier for a bunch of enemies to keep track of one player, than the other way around.
i figured something out though. my main concern was how damage was going to be assigned to the proper character. i'll put the damage assigner in a vfx actor! easy peasy lemon squeezy.
thank you too for the reply. it is appreciated.