How to draw a line between two points
hackmodford
Member Posts: 48
Is there any way to draw a line between two points? I have an actor at the top of the screen and would like to have a "rope" that follows where you touch to the actor at the top of the screen.
I would even be okay with having say... 10 objects between poin1 and point2 that act like the rope. then it would look like it was stretching. Imagine the chain-chomps in mario... the chains aren't solid...
Any ideas on how to accomplish this?
I would even be okay with having say... 10 objects between poin1 and point2 that act like the rope. then it would look like it was stretching. Imagine the chain-chomps in mario... the chains aren't solid...
Any ideas on how to accomplish this?
Comments
http://gamesalad.com/game/3337
___________________________________________________________________________________
BubbleBall Template HERE!!
AppSolute Entertainment on Facebook
http://gamesalad.com/forums/topic.php?id=7981
I made an actor that was 1 pixel wide...
Then I used the vectortoangle expression to calculate the angel needed.
I used "(actorx+touchx)/2" to figure out the exact point between them.
And then used the magnitude expression to figure out how long the line needed to be...
Works really well!