2 Attachment(s)
Help with some strange object scaling
What i'm trying to do is, using scaling, make objects grow when left alone and shrink when interacted with. The code is simple and should work (at least to me), but somehow the object selection seem to mess up.
In the file, click the rightmost active repeatedly. Note how the other actives can be manipulated only after the rightmost active's scale has been changed.
Any help will be appreciated!
2 Attachment(s)
Re: Help with some strange object scaling
Those events looked like a complete mess to me, so I deleted them and made some new ones.
I attached the new file.
Re: Help with some strange object scaling
haha, thanks! my "coding" is always beyond messy! i'll take a look at it as soon as i can.
edit: weird, i can't seem to open the app. could you perhaps try uploading it again? seems to be corrupt.
Re: Help with some strange object scaling
Strange, I downloaded it now and it works..
Anyway, here's the events:
* Start of frame
- Active: Set alterable value A to 1
* Always
- Active: Set scale to alterable value A of Active
* Mouse is over Active
- Active: Set flag 0 on
* [Negate]Mouse is over Active
- Active: Set flag 0 off
* Active: Flag 0 is on
+ Active: Alterable value A < 2
- Active: Add 0.1 to Active of Active
* Active: Flag 0 is off
+ Active: Alterable value > 1
- Active: Sub 0.1 from alterable value A of Active
Re: Help with some strange object scaling
yay! i added a flag to the events i already have and now everything works. your solution is much better in general but it didn't quite work in context with what i have. thanks for your help!