change actor movement direction

ronreronre 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

  • nickname5862nickname5862 Member Posts: 51

    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:

    1. You spawn one actor that moves down (from top to the bottom). When clicked, move in the right direction.
    2. You spawn multiple actors, from top to bottom (from top to the bottom), that when clicked move to the right.

    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!

  • ronreronre Member Posts: 38

    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! ;)

  • SocksSocks London, UK.Member Posts: 12,822

    @ronre said:
    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.
    in the spawner i have: spawn an actor and i set the direction to "down".

    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').

  • ronreronre Member Posts: 38

    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?

  • nickname5862nickname5862 Member Posts: 51

    The down is hidden in the "otherwise" of the "Go Right!!" rule.
    And yes, that is possible. Just change the "direction"

  • ronreronre Member Posts: 38

    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.

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2015

    @ronre said:
    sorry but, "direction" where?
    if i change the direction in the spawner, the spawner not working.

    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'")

    @ronre said:
    and if i make a change in the move "direction" inside the actor, the movement after the click is change.

    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")

  • ronreronre Member Posts: 38

    Ops, i understand it and its working perfect. thank you!

Sign In or Register to comment.