How do I handle a rope to a bucket

Just started using Construct 2? Post your questions here

Post » Sun Sep 28, 2014 3:18 am

I searched around and couldn't find anything to answer my questions.

If I just missing something, I would appreciate being pointed in the right direction.


I have a "bucket" that is attached to a "rope." It is going vertically up and down the screen via the arrow keys (or other similar controls.)

I need the bucket to be attached overhead to a fixed location via rope. I currently have the bucket moving up and down the screen without an issue however no rope yet.

The rope is dual colors (a few pixels of color A and then a few pixels of color B.) The Rope is not "animated" in the fact that the colors are stationary. I just need the rope to grow as the bucket goes down, and get shorter as the bucket goes up.

Such as attaching a line to two points on the layout. One near the top that is stationary and the other to the bucket handle that has it's Y location variable.

Any suggestions, ideas, etc?

I do know that the coloring sounds weird but it is trying to implement something from another platform.

Thank you for your time, assistance and knowledge.
B
3
Posts: 2
Reputation: 179

Post » Sun Sep 28, 2014 5:56 am

You can't draw from point a to b, you 'll need to stretch the rope instead. So your rope needs to be stretchable or tile-able
B
32
S
7
G
2
Posts: 317
Reputation: 2,851

Post » Sun Sep 28, 2014 10:36 am

using a tiled background to create the rope from hook to bucket you could set its position to hook.x,hook,y , its width to distance (hook.x,hook.y,bucket.x,bucket.y) and its angle to angle(hook.x,hook.y,bucket.x,bucket.y)

if you'd rather set it to an imagepoint than the origin of the bucket, create an imagepoint and us bucket.imagepointX(1),bucket.imagepointY(1)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Sep 28, 2014 11:39 pm

Thanks IndieKiwi and LittleStain for giving me some useful info to work with.

Off hand, I am not sure what would work best yet, however, this gives me some direction to see what does.

Thanks again!
B
3
Posts: 2
Reputation: 179


Return to Beginner's Questions

Who is online

Users browsing this forum: pacificnwgal and 1 guest