how do I pin a line to a sprite?

Get help using Construct 2

Post » Fri Jun 20, 2014 9:29 am

Hey guys, I' using C2 to create a timeline for my video project. I have events represented as an images, but I can't figure out how to pin a line from the event to the timeline so when I move the event on the timeline the line would stick to the event, and change its angle accordingly. any ideas?

2nd problem , what behaviors should I use for the bottom edge of the line so it would glide on the timeline?

Tnx

Vladi
You do not have the required permissions to view the files attached to this post.
B
2
Posts: 3
Reputation: 156

Post » Fri Jun 20, 2014 9:47 am

I am trying to understand your problem, but I am not sure to do.

Do you want to move the "Event" image, and keep the line between the circle (2 objects) ? Check the attached CAPX.

simplelineofsight.capx


https://dl.dropboxusercontent.com/u/542 ... index.html

If you want to create Events at specific times, use an FPS counter. Then you can check the actual position of the circle, and create Functions to kick specific multiple events on overlapping points on the timeline.

2nd the "Sine" behavior should make it.
You do not have the required permissions to view the files attached to this post.
Last edited by xeed on Fri Jun 20, 2014 10:18 am, edited 2 times in total.
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Fri Jun 20, 2014 9:51 am

I have to ask, have you looked into the Pin behaviour?
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Fri Jun 20, 2014 10:01 am

Hi Xeed, thanks for help,
What I trying (desperately) to create is a simple timeline on which I could drag an event back and forth, that line should stick to the event and change only it's angle, unless I move (drag) the circle on the timeline. I tried to "pin" the "line sprite" to the "event sprite", but for some reason it's just doesn't work. I'm new to C2 so I probably missing something here...
B
2
Posts: 3
Reputation: 156

Post » Fri Jun 20, 2014 10:03 am

I did Codah, but I probably missing something, I need some step by step guidance here.
B
2
Posts: 3
Reputation: 156

Post » Mon Jun 30, 2014 7:03 am

oh you forgot the @ in front of my name so I didn't see this
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Mon Jun 30, 2014 8:20 am

If I read your first post correctly, the basic mechanic that you're after is this: http://www.eli0s.com/Tests/PinnedLine.capx
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Mon Jun 30, 2014 9:38 am

Does the trick and no pinning required :)
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596


Return to How do I....?

Who is online

Users browsing this forum: ASHKAR, brunopalermo, ItsAstro and 30 guests