Discuss Scratch

Sok_keang
Scratcher
15 posts

How to make sprite letter change when the mouse touch it?

I want to know how the sprite letter change or the letter that you actually make it yourself change to other costume or other letter when the mouse touch the letter?
master_tolkien
Scratcher
100+ posts

How to make sprite letter change when the mouse touch it?

Use this as an example, but instead of making the letters turn red, make one letter change its appearance.

Last edited by master_tolkien (Feb. 11, 2015 20:48:52)

Georgie-4-eva
New Scratcher
5 posts

How to make sprite letter change when the mouse touch it?

I have a similar problem. Could someone tell me how to make my sprite change it's appearance if the mouse hovers over it
Georgie-4-eva
New Scratcher
5 posts

How to make sprite letter change when the mouse touch it?

when i use:



when green flag clicked
if <touching ?> then
switch costume to

end




it never works!
deck26
Scratcher
1000+ posts

How to make sprite letter change when the mouse touch it?

Georgie-4-eva wrote:

when i use:



when green flag clicked
if <touching ?> then
switch costume to

end




it never works!
You need a forever loop around that or it will only run once when the project starts and be finished long before you move the mouse over it.
123Jesusfreak
Scratcher
15 posts

How to make sprite letter change when the mouse touch it?

whenclickediftouching?thennextcostume
Seth2764
New Scratcher
1 post

How to make sprite letter change when the mouse touch it?

Georgie-4-eva wrote:

I have a similar problem. Could someone tell me how to make my sprite change it's appearance if the mouse hovers over it
same
helloworldbyeworld
Scratcher
1000+ posts

How to make sprite letter change when the mouse touch it?

There are two reasons why the plain if-statement will not work.

1. It’ll only check out once, as many people mentioned.
2. If it checks continuously, it will keep changing the costume, which is not good for most purposes.

Here’s a script that does work:

whenclickedforeveriftouchingmouse-pointer?thennextcostume or whatever costume-related action you wantwaituntilnottouchingmouse-pointer? this solves the second problem

Powered by DjangoBB