[DEMO] - Multitouch Image Resize
Hunnenkoenig
Member Posts: 1,173
Ok, I managed it to work.
Published under: http://gamesalad.com/game/play/47030
It has only the resize ruleset.
My problem is now, I can't stop the image being resized.
I have set a min and max width and height, but it doesn't work, or if it reaches those values, you can't resize it anymore.
I use rules like
maxwidth = 200
if self.size.width < 200
Do this and that
now the problem is, if I resize to 200, I cant shrink it anymore, because now it is on max size and the multitouch function stops of course.
If anybody can expand it with min/max width and height, that would be cool
Published under: http://gamesalad.com/game/play/47030
It has only the resize ruleset.
My problem is now, I can't stop the image being resized.
I have set a min and max width and height, but it doesn't work, or if it reaches those values, you can't resize it anymore.
I use rules like
maxwidth = 200
if self.size.width < 200
Do this and that
now the problem is, if I resize to 200, I cant shrink it anymore, because now it is on max size and the multitouch function stops of course.
If anybody can expand it with min/max width and height, that would be cool
Comments
One useless attribute is still in it :-)
A boolean actor attribute called "multitouch" I think.
In my version there is a drag and drop function in it of course :-)
also if your having problems with it, have you tried using equal to or great than...' >= ' rather than just '='
may be it is resizing to quickly and goes over 200. ?
I think, I have to watch if the magnitude is growing or shrinking and then set the min and max accordingly, so if it grows and reaches max, then it can only shrink and vice versa.