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

#1 2010-05-26 09:18:04

ZomgZack
Scratcher
Registered: 2010-05-26
Posts: 1

Mouse reacting to sprites

Hello, i am trying to get my ouse pointer to interact with the other sprites around it. i want to brodcast something once my pointer touches the sprite but i dont know how i can do that. Help pl0x!

Offline

 

#2 2010-05-26 09:39:43

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Mouse reacting to sprites

Code:

When flag clicked:
   forever:
      wait until <touching mouse pointer?>
      broadcast [something]
      wait until <not <touching mouse pointer?>>

http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer