[Solved] Trouble attaching an animation.

0 favourites
  • 6 posts
From the Asset Store
4 Block Soldiers with different animations, 400x400
  • .

    I have a rocket tied to a rock. The rocket overcomes the rock and flies. The rocket wobbles left and right, that's fine, but the animation of the rocket's firing off does not wobble with the rocket.

    EveryTick>Rockets_Image>SetPositionToAnotherObject>The_Rocket

    There wouldn't happen to be a 'SetPositionToAnotherObjectAndMatchAngle' option that I haven't found would there?

    Thanks

  • Just add to the same event:

    Set Angle to DifferentObject.Angle

  • .

    I don't see that as an option.

    Maybe this option does not apply to sprites?

    or... are you saying I can add it to the existing event like 'do this, and this too?'

    I'm a little confused.

    http://imgur.com/a/lB0Oa

    I don't know why the image isn't working.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes add another action to that event. One for Set Position, the second would be Set Angle. The angle you want to set it to is Rocket.Angle.

  • Add action->select Rockets_image->Under the category 'Angle', which should be at the top, choose 'Set Angle'

    This should open up a dialogue box and you can enter 'The_Rocket.Angle'

  • .

    Oh my.

    It works now, excellent, thanks.

    I didn't know you could add things like 'The_Rocket.Angle'

    This makes things a lot more flexible... and complicated.

    Sweet!

    Now I've got the rockets 'force' pushing in alignment with the rocket rather than just pushing up. (target.angle+270)

    This is awesome thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)