Drawing lines

alexvaxman

  • Posts: 3
Hi, i'm trying to draw a lines using a character, while controlling it by clicking a spot on  the screen. so the line should start from the initial location of the character , and stretch with the movement of the character to where it stops.  please help.

LIBERADO

  • *
  • Posts: 2720
One line only? Or multiple lines for multiple positions?
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

alexvaxman

  • Posts: 3
It will pretty much be one line, going from point A to point B, then stop, wait  for another spot to be clicked on the screen, then move from point B to point C and so on.  I attached a PNG with a Drawing, just so you get the idea. Thank You!!

LIBERADO

  • *
  • Posts: 2720
Is this what you want?:

<a href="http://www.filz.us/files/0c42f43e/8f4/Drawing_Lines.swf" target="_blank" class="new_win">http://www.filz.us/files/0c42f43e/8f4/Drawing_Lines.swf</a>
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

alexvaxman

  • Posts: 3
I would like it to go only in a straight line, But YES this is exactly what i meant.  :)

LIBERADO

  • *
  • Posts: 2720
I would like it to go only in a straight line, But YES this is exactly what i meant.  :)

Here is a simplified version, so you can download it:

« Last Edit: October 21, 2014, 02:37:11 am by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.