[Solved] Trouble attaching an animation.

Just started using Construct 2? Post your questions here

Post » Thu Aug 04, 2016 7:22 am

.
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
Last edited by Nicadeamas on Sat Aug 06, 2016 3:05 am, edited 1 time in total.
B
9
S
4
G
1
Posts: 10
Reputation: 1,247

Post » Thu Aug 04, 2016 2:30 pm

Just add to the same event:

Set Angle to DifferentObject.Angle
ImageImageImage
B
44
S
26
G
11
Posts: 520
Reputation: 10,506

Post » Thu Aug 04, 2016 9:34 pm

.
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.
Image
http://imgur.com/a/lB0Oa

I don't know why the image isn't working.
B
9
S
4
G
1
Posts: 10
Reputation: 1,247

Post » Thu Aug 04, 2016 10:47 pm

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.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Fri Aug 05, 2016 4:22 am

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'
ImageImageImage
B
44
S
26
G
11
Posts: 520
Reputation: 10,506

Post » Fri Aug 05, 2016 9:58 pm

.
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!
B
9
S
4
G
1
Posts: 10
Reputation: 1,247


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests