rotate a object in paralel with another

Get help using Construct 2

Post » Sat Nov 09, 2013 4:31 am

i need to rotate 2 objects in paralel to each other. having trouble thanks
B
2
Posts: 7
Reputation: 164

Post » Sat Nov 09, 2013 4:35 am

Can you please be a little more specific as to what you need?
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Sat Nov 09, 2013 4:55 am

You could just set the second sprites angle to the first: SyncRotate.capx
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Sat Nov 09, 2013 4:57 am

I need to take two sprites lets say they are logs.

so they do this


             lets say i pressed a button to rotate left

imagine that the two lines are sprites

on pressing it would go from ||     to \\ to = to // then back to ||


the two lines rotate parallel to each other
B
2
Posts: 7
Reputation: 164

Post » Sat Nov 09, 2013 5:20 am

Ok, you just need to do something like this:

On start of layout
sprite2, pin to sprite1 (position and angle)

Then whatever you're doing to make the angle change. You can use something like this to test what it will look like:

Every X seconds
sprite 1, rotate 20 degrees clockwise
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Sat Nov 09, 2013 7:49 am

Use a third sprite and pin the logs to the top and bottom image-points (that you set up). Use LiteTween to do the rotation: RotateParallelCycle.capx
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests