Spawn actor at touch?
Hey everyone, I need help with spawning an actor where I touch on the screen. I don't mean a drag and drop sort of deal, just spawn the actor where the screen is touched. Thanks!
Best Answer
-
Mantiz_Developers Posts: 34
Hi! you could try setting an actor with a Rule (When actor recieves event - touch -outside) and inside this rule, put a Spawn Actor behaviour.
And set the horizontal Position property to the Touch Positon.x (click the little "e", select devices -> touches -> touch 1 ->X).
Do the same for the vertical Position property, and select touch 1 -> Y.
Set both "Relative to" properties to scene...
And in the "Actor" property, select the actor you want to spawn in the touch position
Answers