change actor movement direction
ronre
Member Posts: 38
hey, i have a spawner that spawn actor from the top to the bottom.
i want the actor to move right from his x and y when i click on the screen.
in the actor i have: move without direction. the direction is in the spawner.
how should i do that?
Comments
Not a clue what you are talking about.
Sorry, but can you be more specific?
I have got multiple things that you van possibly mean:
Also I don't understand what you mean with "to move right from his x and y" How can you move right to the y? the x will grow (moving to the right) but moving to the right doesn't affect the y at all.
If you answer these questions, then I will try to make a file with your answer!
hey,
Sorry i was not clear
i mean one actor spawned from top to the bottom (by the spawner). when i click on the screen, the actor move (in a different speed) in the right direction.
you right, only the X position will be change. the Y position will be the same as it was when i clicked.
only one actor needs to spawn every specific time (i know with timer).
in the spawner i have: spawn an actor and i set the direction to "down".
in the actor i have: move without direction ("0")
thank you!
Example attached:
P.S. the 'direction' in the spawner doesn't control the direction the spawner actor will move it, it just changes the spawned actor's rotation (it really should be called 'rotation').
great, working perfect.
what is the "down" inside the actor's rule?
and i want the actor to move in specific Degree, Diagonally down (before clicking) . is that possible?
The down is hidden in the "otherwise" of the "Go Right!!" rule.
And yes, that is possible. Just change the "direction"
sorry but, "direction" where?
if i change the direction in the spawner, the spawner not working. (nothing spawned)
and if i make a change in the move "direction" inside the actor, the movement after the click is change.
The spawner has nothing to do with the actor that it spawns, the spawner cannot tell the actor to do anything like move in a certain direction or at a certain speed, a spawner only spawns other actors, the only things you can pass from a spawner to the spawned actor is it's location and what angle it's rotated to.
This has already been mentioned ("P.S. the 'direction' in the spawner doesn't control the direction the spawner actor will move it, it just changes the spawned actor's rotation (it really should be called 'rotation'")
The move downwards is in the 'otherwise' section, this has also already been mentioned ("The down is hidden in the "otherwise" of the "Go Right!!" rule. And yes, that is possible. Just change the "direction")
Ops, i understand it and its working perfect. thank you!