How i can draw line?

how i can draw line?

Welcome.

Here are several 'tutorials" that might help you.

http://www.appinventor.org/bookChapters/chapter2.pdf and

may help.

it's using drag, i don't using drag

Screenshot (58)

this my problem, i cannot using drag block

Screenshot (58)

how i can draw line? please help me. i not using drag click, i use button

You mean using buttons to move the drawing object. Sounds like an 'Etch-a-Sketch' clone.

Look at the examples here Wondering bout' this (code an EtchASketch clone)

Those apps seem to do what you would like to do.

Screenshot (58)
anyone can help me how draw line without drag click? i use button. i don't know what i should do in x1 y1 x2 y2

Try this:

image

image

drawlinewhenmoveball.aia (2.0 KB)

It remembred me Nokia's Iconic Snake game. It seems like you do want to achive smthing like that.

Do you mean snake ? :wink:

:snake:

1 Like

Typo mistake corrected.

5fd84113d8c0ebe2a7df27f6a17647fbf1479030

Notice how your x1 and x2 values for the line are exactly the same.
Likewise for your y1 and y2 values.

You weren't drawing a line.
You were drawing a dot.