[DEMO] - Multitouch Image Resize

HunnenkoenigHunnenkoenig Member Posts: 1,173
edited November -1 in Working with GS (Mac)
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

Comments

  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    Nobody is interested or has some feedback? :-(
  • guru-at-zidwareguru-at-zidware Member Posts: 369
    nice....need to add a drag command to move it around!
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    There is a drag and drop demo and tutorial. I didn't want to make it complicated.

    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 :-)
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    can you make it so if it reaches 200, have a rule that then makes it 199, so multitouch is still active?

    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. ?
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    I tried the greater or same rule. Doesn't work. I also tried to do the 200 = 199 rule. Also not working.

    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.
Sign In or Register to comment.