move square in lcd ...

Per's icon

Hi!

I want to have the possibility to move the square in the lcd. the square from this patch below. I wounder if this is possible with the help of "moveto" or "move" attribute?

If not. What is the function of these attributes. been reading the manual but cant really understand what these attributes are used for

heres the patch and the square I want to be able to move around on the screen.

`

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks

Per

Gregory Taylor's icon

to produce the illusion of movement, you'll have to

a. erase the display
b. draw the rectangle

(repeat with the new values)

take a look at the clear message in the helpfile, and you can use the trigger object to perform those activities in sequence each time the metro fires.

Per's icon
Max Patch
Copy patch and select New From Clipboard in Max.

below is not working but will the example to the right be possible?

llumen's icon

no because with framerect you define start x/y and end x/y that would mean that you need to pack it differently like so:

Max Patch
Copy patch and select New From Clipboard in Max.

Per's icon

thanks

then ... what does the "moveto" or "move" attribute means?

Christopher Dobrian's icon

You can read about these messages on the lcd reference page.

Max Patch
Copy patch and select New From Clipboard in Max.

They don't move objects that have already been drawn; they move the "pen" (the drawing location for the next drawing operation). Like this: