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

#1 2010-07-11 13:36:39

smiley10
New Scratcher
Registered: 2010-07-10
Posts: 2

Sprites as cursors

This is probably impossible! But I am making a makeover game, so when you click on the different parts of the face the costume changes. I wanted a sprite (that would act as a cursor) so when I hovered the mouse over, for example the lips a lipstick would appear, and the eyes, a mascara would appear. Does anyone know how to do this? Or at least how to get a cursor style sprite, so I can work the rest out?
Thanks in advance!  smile

Offline

 

#2 2010-07-11 13:47:41

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Sprites as cursors

Well, the closest thing you can do to have a sprite as a cursor is to make it always go to the mouse pointer. The cursor will still be visible, but the sprite would sort of act like the cursor. To make a sprite go to a  mouse pointer, use this script:

Code:

When flag clicked
 forever
   go to mouse pointer

and then you could make another script to change the costume of the cursor as you click on different parts of the face

Code:

When flag clicked
  forever 
    if <touching [eyebrows]> and <mouse down>
     set to costume [cursor1]
    if <touching [lips]> and <mouse down>
     set to costume [cursor2]

and so on...

The parts of the face would have to be separate sprites for the above scripts to work. Hope this helps you out!

EDIT: If you want me to post pictures of the scripts, just let me know  smile

Last edited by coka (2010-07-11 13:50:02)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#3 2010-07-11 13:51:05

smiley10
New Scratcher
Registered: 2010-07-10
Posts: 2

Re: Sprites as cursors

Thank you sooo much, I will try it now. The game is called makeover Sarah, i have just uploaded it if you want to take a look!  smile

Offline

 

Board footer