How do I connect the dots when its moving?

Get help using Construct 2

Post » Wed Dec 23, 2015 8:36 am

Message: desasteraang can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi Guys, so i made this capx file to test about my constellation game..
i got the idea from night in the wood game

so i manage to connect the dots but i cant seem to connect it while they are moving around the screen...
i tried using pin the line onto the dot but its just pin it onto the background

heres my capx file..
https://www.dropbox.com/sh/gxj2y2ygdokuwtz/AADWzysfOgAV-vDCsNMEkYeYa?dl=0

i hope you guys can help me out....
B
6
Posts: 43
Reputation: 342

Post » Wed Dec 23, 2015 8:55 am

Simple!
Set the width of the line to be equal to the distance of the two objects. Set the origin of the line to be at the right end (I think). Set the angle of the line to be the angle towards the other object from the original object. Set the position of the line to be on the original object. This is basically how line of sight can work. The line is just a long stretched out box. It should look fine if it's just one color with no texture.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Wed Dec 23, 2015 9:05 am

I think i have tried all that @Sushin, and its working just fine if the dots are not moving..haha
If its moving however the line will stay in the same place eventhough i have pinned it to the dots..
Have u tried looking at my capx file?
B
6
Posts: 43
Reputation: 342

Post » Wed Dec 23, 2015 9:46 am

Nevermind guys :) i got it working....
i put the action pin in the wrong condition...
Thx for your help though @Sushin
B
6
Posts: 43
Reputation: 342


Return to How do I....?

Who is online

Users browsing this forum: AllanR, bikachu, oosyrag, wirelesstkd and 2 guests