How do I make a link between sprites ?

Get help using Construct 2

Post » Mon Apr 03, 2017 6:53 am

Hello people,

Long story short, my player's sprite can grab some object thanks to the physic behavior, like, when the character is near an object and the cursor is overlapping this object, the player can grab it and move it while pressing the space bar. It works fine but I'd like to add a little effect to it.

Like, a "link" or "light ray" which connects the character to the object. I mean, kinda like this :

Image

Also, If possible :

a) As the object is near the player => The ray/link is large
b) As the player is moving the object far away from him => The ray become more and more thinner according to the distance between the object and the player

But that'd be a bonus, if you can already explain me how to create such a visual link between sprites I'll be glad of course. If it appears that you know how to make the previous conditions too, I'll not blame you haha. Thanks for reading, hope you can help !
B
5
Posts: 20
Reputation: 269

Post » Mon Apr 03, 2017 1:01 pm

ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Mon Apr 03, 2017 3:15 pm

Freakin perfect. Thanks a lot @alextro, problem solved !
B
5
Posts: 20
Reputation: 269


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Google [Bot], Nicolas951, tarek2 and 13 guests