This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-18 16:49:59

mtsa-test
New Scratcher
Registered: 2011-04-05
Posts: 2

Help needed fast!!

Hi Scratchers,

I have been a member and a user for 2 years, I have learned all the basics. And yet, there is one thing I have never been able to do in my games:

When the mouse pointer hovers over an object, i would like it to grow bigger.



<when green flag clicked>
<forever if><touching[ Sprite 26
<repeat( 50 )
<change size by( 2 )
<wait( 0.001 )secsc>
<end>


Please help me and tell me what is wrong with it THX!


MTSA

Offline

 

#2 2011-05-18 16:57:17

mtsa-test
New Scratcher
Registered: 2011-04-05
Posts: 2

Re: Help needed fast!!

sorry, its not touching sprite 26, it touching mouse pointer, my bad

Offline

 

#3 2011-05-18 16:58:13

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Help needed fast!!

Here's a way to do it:

When flag clicked
set size to (80)
forever
if touching mouse pointer
   change size by ((100-size)/10)
else
   change size by ((80-size0/10)
End

Should work smoothly.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

Board footer