Discuss Scratch

gamergal
Scratcher
4 posts

The if touching mouse pointer script isn't working

Hi! For one of my projects, I am using the if touching mouse pointer script but it is not working. This is what it looks like:
iftouching?thensay
Help is greatly appriceated and I will put you in the credits
zanzolo
Scratcher
66 posts

The if touching mouse pointer script isn't working

This will only check once if the sprite is touching the mouse pointer and then never check again.

If you want to check all the time over and over you need to run these blocks over and over. Something like this:

whenclickedforeveriftouchingmouse pointer?thensaytouched!
gamergal
Scratcher
4 posts

The if touching mouse pointer script isn't working

Thanks!
AgentBunny102
Scratcher
33 posts

The if touching mouse pointer script isn't working

HELP!!!!! I'm trying to make my sprite change colors as the mouse pointer goes over it, and then go back to normal when the mouse pointer isn't on it. Any suggestions?
DudmasterUltra
Scratcher
100+ posts

The if touching mouse pointer script isn't working

AgentBunny102 wrote:

HELP!!!!! I'm trying to make my sprite change colors as the mouse pointer goes over it, and then go back to normal when the mouse pointer isn't on it. Any suggestions?

whenclickedforeversetcoloreffectto0waituntiltouchingmouse pointer?repeatnottouchingmouse pointer?changecoloreffectby5

There you go!
Zacshap21
Scratcher
100+ posts

The if touching mouse pointer script isn't working

AgentBunny102 wrote:

HELP!!!!! I'm trying to make my sprite change colors as the mouse pointer goes over it, and then go back to normal when the mouse pointer isn't on it. Any suggestions?

When green flag pressed
Repeat until not mouse XY = sprite XY
Set colour effect to ____
aldeberon_29
Scratcher
36 posts

The if touching mouse pointer script isn't working

DudmasterUltra wrote:

AgentBunny102 wrote:

HELP!!!!! I'm trying to make my sprite change colors as the mouse pointer goes over it, and then go back to normal when the mouse pointer isn't on it. Any suggestions?

whenclickedforeversetcoloreffectto0waituntiltouchingmouse pointer?repeatnottouchingmouse pointer?changecoloreffectby5

There you go!

Wouldn't it be
repeatuntil
. not
repeat
?

Last edited by aldeberon_29 (May 29, 2014 00:58:52)

Gabrielawesome
Scratcher
5 posts

The if touching mouse pointer script isn't working

pls help!
whenclickediftouching?thenswitchcostumeto
Gabrielawesome
Scratcher
5 posts

The if touching mouse pointer script isn't working

in touching is mouse pointer in costume is the costume i want it to be in
Gabrielawesome
Scratcher
5 posts

The if touching mouse pointer script isn't working

nevermind
YouAreAmazingToMe
Scratcher
4 posts

The if touching mouse pointer script isn't working

aldeberon_29 wrote:

DudmasterUltra wrote:

AgentBunny102 wrote:

HELP!!!!! I'm trying to make my sprite change colors as the mouse pointer goes over it, and then go back to normal when the mouse pointer isn't on it. Any suggestions?

whenclickedforeversetcoloreffectto0waituntiltouchingmouse pointer?repeatnottouchingmouse pointer?changecoloreffectby5

There you go!

Wouldn't it be
repeatuntil
. not
repeat
?

I tried it with the repeat until and it worked.
Rennat
Scratcher
3 posts

The if touching mouse pointer script isn't working

Oooooof! It doesn't work…here's my code for my tycoon game!
It doesn't work even with the clone that has costume 1!!! WHYYYYYY!
whenIreceive Shopiftouching mouse pointer?thenifcostume#=1thensaygenerator1upgradecostfor2secsend

Last edited by Rennat (May 5, 2016 01:41:13)

Rennat
Scratcher
3 posts

The if touching mouse pointer script isn't working

Why is it code?

Powered by DjangoBB