move square in lcd …

Apr 18, 2011 at 1:53am

move square in lcd …

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

#56393
Apr 18, 2011 at 2:15am

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.

#202252
Apr 18, 2011 at 11:24am

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

– Pasted Max Patch, click to expand. –
#202253
Apr 18, 2011 at 12:33pm

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. –
#202254
Apr 20, 2011 at 1:13pm

thanks

then … what does the “moveto” or “move” attribute means?

#202255
Apr 20, 2011 at 1:44pm

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. –
#202256

You must be logged in to reply to this topic.