Forums > MaxMSP

move square in lcd …


Per
April 18, 2011 | 1:53 am

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.

`

– Pasted Max Patch, click to expand. –

Thanks

Per


April 18, 2011 | 2:15 am

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
April 18, 2011 | 11:24 am

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

– Pasted Max Patch, click to expand. –

April 18, 2011 | 12:33 pm

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:

– Pasted Max Patch, click to expand. –


Per
April 20, 2011 | 1:13 pm

thanks

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


April 20, 2011 | 1:44 pm

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

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

– Pasted Max Patch, click to expand. –

Viewing 6 posts - 1 through 6 (of 6 total)