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

#1 2010-09-02 17:34:54

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

If certain area of sprite clicked

Is there a way to do this? (In blocks, please)


IHeartGaming

Offline

 

#2 2010-09-02 17:42:21

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: If certain area of sprite clicked

IHeartGaming wrote:

Is there a way to do this? (In blocks, please)

Easy. Is this for a few buttons in one sprite? Will the sprite be moving?


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#3 2010-09-02 17:57:12

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: If certain area of sprite clicked

its 1 costume and 2 buttons.
Sample:
|____________________________________________________|
|                                                                  | |   | | |
|                                                                   --     --  |
|                                                                              |
|                                                                              | (about 15 more times)
_____________________________________________________

EDIT: UGH! I STINK AT ASCII ART!
EDIT 2: It won't be moving.

Last edited by IHeartGaming (2010-09-02 17:58:37)


IHeartGaming

Offline

 

#4 2010-09-02 18:04:02

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: If certain area of sprite clicked

Will there be a transparent space between the buttons?


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#5 2010-09-02 18:07:33

BaronVonBlade
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: If certain area of sprite clicked

I think you can do this if you make the part clicked a certain colour and if sprite clicked and pointer touching that colour, whatever
Someone who uses scratch can probably explain better


http://img820.imageshack.us/img820/6055/imagevxqx.jpghttp://img820.imageshack.us/img820/6055/imagevxqx.jpg

Offline

 

#6 2010-09-02 18:22:49

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: If certain area of sprite clicked

BaronVonBlade wrote:

I think you can do this if you make the part clicked a certain colour and if sprite clicked and pointer touching that colour, whatever
Someone who uses scratch can probably explain better

Wait, so you just stay on here for the forums?


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#7 2010-09-02 18:51:19

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If certain area of sprite clicked

You could just make multiple sprites, or make the different buttons a different color.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#8 2010-09-02 20:25:29

Telemachus
Scratcher
Registered: 2010-04-21
Posts: 500+

Re: If certain area of sprite clicked

Harakou wrote:

You could just make multiple sprites, or make the different buttons a different color.

Or just use x,y domains.


http://i54.tinypic.com/10h0fnp.jpg

Offline

 

#9 2010-09-02 20:42:30

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If certain area of sprite clicked

Telemachus wrote:

Harakou wrote:

You could just make multiple sprites, or make the different buttons a different color.

Or just use x,y domains.

That works too. It's rather annoying though.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#10 2010-09-02 21:37:14

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

Re: If certain area of sprite clicked

Harakou wrote:

Telemachus wrote:

Harakou wrote:

You could just make multiple sprites, or make the different buttons a different color.

Or just use x,y domains.

That works too. It's rather annoying though.

Easier, since you have only two buttons, to make the y domain for both of them and inside that put the color of the buttons and inside that put the x value in between them.


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

Offline

 

#11 2010-09-03 19:56:56

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If certain area of sprite clicked

AtomicBawm3 wrote:

Harakou wrote:

Telemachus wrote:


Or just use x,y domains.

That works too. It's rather annoying though.

Easier, since you have only two buttons, to make the y domain for both of them and inside that put the color of the buttons and inside that put the x value in between them.

Oh, right. For some reason I thought they had like 15 buttons.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#12 2010-09-06 16:37:04

legomany3448
Scratcher
Registered: 2010-08-30
Posts: 36

Re: If certain area of sprite clicked

Well first of all, where did you get that awesome picture of a mii?  Second of all, this is my advice:  Make a certain part of you mii one particular color, then do this:
[blocks]
<when green flag clicked>
<wait until><< <color[ (certain color) ]is over[ color of thingamadoo <and> <mouse down?> >>
[/bocks]
and then you tell it what you want to do.  Thingamadoo should be a new sprite
that is a tiny (prefferably black) dot.  It will always show and follow the mouse around.


¿uʍop-ǝpısdn pɐǝɹ noʎ uɐɔ
Click here to get EPIC custom blocks on Scratch!

Offline

 

Board footer