Here is a sample patch which does what you are asking for. It just uses the normal GEM objects
Later, Mark
============================ = mdanks@stormfront.com = Lead Programmer PS2 = http://www.danks.org/mark ============================
#N canvas 747 139 673 498 8; #X obj 21 195 gemwin; #X msg 34 89 create; #X msg 35 118 destroy; #X msg 32 31 1; #X msg 33 61 0; #X obj 367 147 ortho; #X obj 361 272 colorRGB 0 1 0; #X msg 60 162 buffer 1; #X obj 367 120 gemhead; #X msg 367 67 bang; #X msg 128 161 dimen 400 400; #X obj 361 309 square; #X msg 113 33 bang; #X msg 237 128 4; #X obj 237 158 / 200; #X obj 367 175 scaleXYZ; #X obj 182 69 loadbang; #X obj 361 236 translateXYZ; #X obj 455 105 counter 0 400; #X obj 455 148 - 200; #X obj 503 226 * 50; #X msg 365 6 1; #X msg 366 36 0; #X obj 513 148 % 100; #X obj 516 187 > 50; #X msg 555 63 reset; #X obj 455 50 metro 20; #X text 63 374 the window is 4 units wide , but it is -200 to 200 pixels; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 5 0 15 0; #X connect 6 0 11 0; #X connect 7 0 0 0; #X connect 8 0 5 0; #X connect 9 0 8 0; #X connect 10 0 0 0; #X connect 12 0 0 0; #X connect 13 0 14 0; #X connect 14 0 15 1; #X connect 14 0 15 2; #X connect 15 0 17 0; #X connect 16 0 13 0; #X connect 16 0 10 0; #X connect 16 0 7 0; #X connect 17 0 6 0; #X connect 18 0 19 0; #X connect 18 0 23 0; #X connect 19 0 17 1; #X connect 20 0 17 2; #X connect 21 0 25 0; #X connect 21 0 26 0; #X connect 22 0 26 0; #X connect 23 0 24 0; #X connect 24 0 20 0; #X connect 25 0 18 0; #X connect 26 0 18 0; #X connect 26 0 9 0;
Thanks Mark. The problem I had was that the ortho example causes my winNT to hang for some reason, so I could never find out how to use ortho!
But the one you posted works fine.
nick
Mark Danks wrote:
Here is a sample patch which does what you are asking for. It just uses the normal GEM objects
Later, Mark
Thanks Mark! Thats great, we had a patch that would move a small square around the screen but we could not figure out how to keep the previous from disappearing! THnkas a million for the patch! Hopefully now we will be able to progress with the original plan!
Regards, Rory.
Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie