hero throws item when button is pressed

Im trying to make it to where when i press a button my hero throws out an item. I can get the button pressed and spawn to work but I want it to look like my hero throws it instead of it spawning.

Answers

  • ThoPelThoPel GermanyMember, PRO Posts: 184
    edited July 2015

    e.g. your actor shoots an arrow with a bow

    FIRST start bow stretch animation (animation not looping)
    AFTER THAT start release bowstring animation (animation not looping)
    PARALLEL spawn arrow in back of actor.

    The rest is some fine tuning :)

    Btw: Stretching and releasing the bowstring could also be one animation. It depends on whether you distinguish touch pressed and touch released.

  • derka6391derka6391 Member Posts: 31

    what do you mean by bow or bowstring?

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    Spawn the item behind the player. Adjust the spawn position to match the player's hand. Tell the item,

    For 1 second accelerate up

    After 1 second accelerate down. Run to completion.

  • derka6391derka6391 Member Posts: 31

    got it! thank you!

Sign In or Register to comment.