I recently moved my twin stick shooter to a single stick.
But now you can tap the characters and lock on.
Works fine most of the time.
I have an object variable, that on begin play is set to the character himself.
Target-able objects include the "on touch" event node and change the object. Event tick look at rotation is used to face the object.
Only problem is i do get an error. When the PRE ticks trigger the object is empty and (event begin play sets is to character) and so rotation is found to be none. Game still playes, But i worry about the errors...
Rather than checking if the object equals self I would like to check if it is EMPTY and just make it empty when not targeting. Is there a way to do that?
I guess I could deal with having it set default to the character, but the default value is grayed out in the BP.
Also when targeting an enemy I would like it to have a circle around them or whatever.
I have thought of several ways to do this, but they require event ticks and such. And was worried a bit on the performance.
So far my favorite is to create an object that is mostly transparent, with a red circle, that would attach to the enemy.
I have considered trying to do a dynamic material that would alter a gradient giving you the enemies current health....
thoughts?
Has anyone seen anything like that used? when i search I mostly get results for FPS targeting systems
But now you can tap the characters and lock on.
Works fine most of the time.
I have an object variable, that on begin play is set to the character himself.
Target-able objects include the "on touch" event node and change the object. Event tick look at rotation is used to face the object.
Only problem is i do get an error. When the PRE ticks trigger the object is empty and (event begin play sets is to character) and so rotation is found to be none. Game still playes, But i worry about the errors...
Rather than checking if the object equals self I would like to check if it is EMPTY and just make it empty when not targeting. Is there a way to do that?
I guess I could deal with having it set default to the character, but the default value is grayed out in the BP.
Also when targeting an enemy I would like it to have a circle around them or whatever.
I have thought of several ways to do this, but they require event ticks and such. And was worried a bit on the performance.
So far my favorite is to create an object that is mostly transparent, with a red circle, that would attach to the enemy.
I have considered trying to do a dynamic material that would alter a gradient giving you the enemies current health....
thoughts?
Has anyone seen anything like that used? when i search I mostly get results for FPS targeting systems
Comment