moving actor to location problem
allc1865
Member, PRO Posts: 777
Hey everyone,
I had a problem with an enemy that has to move to the player's position, but what I wanted it to do was follow the player's position, but move above the player on its x-axis for a second, then come down on the y-axes and shoot the player.
I can make the enemy move the players location, but it moves on both the X & Y axes causing it to come down in a weird way.
Any help is appreciated, thanks
Best Answer
-
RowdyPants Posts: 465
Oh I see now.
I had
--If self X ≠ player X
--Move To player X (along X axis)
Otherwise
--Move To player Y (along Y axis)I still don't understand the (firing same time) diagonal movement though.
Answers
bump
Rule
--Move To player's X
--When self X = player's X
----Move To player's Y
@Socks That weirdly doesn't work. The logic is straightforward but try it out in a project. The movement is not as expected.
Works fine for me ?
Your rules were entirely different to the ones I suggested, you can hardly reply with "that doesn't work".
Well, I initially did (what I thought was) that exact way. Just.. incorrectly. /sorry
@allc1865 Sorry for the distraction. Are you good to go?
That was funny.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@RowdyPants , yep, I figured it out! Thanks