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

#1 2011-09-10 23:58:53

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Points and Regions

Points

Points in a script. So, like the comment block did nothing, the point block would do nothing. It would look something like

| Point [ ] |

And in the box, you would type in any word.

Then, you would use other point scripts to use those script points. Such as returning to that point in the script.

| Return to point [ ] |

———

Regions

This would be the "true" area of a sprite. It would be good in buttons, where, although the button may be a specific shape, you want it to report being clicked, when a region is clicked.

To not confuse people, this would be like the set centre of sprite function, where it is set automatically unless changed manually.

It would also be useful for <touching [   |v]> blocks. For example, a pacman sprite often get's stuck because it's mouth area touches the wall, then it turns, and because pacman is not a complete circle but has a cut-out as a mouth.

If you have no idea what I'm talking about, tell me.

Supporters wrote:

-jji7skyline
-Death_Wish
-JJROCKER
-scimonster

Last edited by jji7skyline (2011-09-13 18:46:56)


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#2 2011-09-11 18:49:43

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Points and Regions

bump


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#3 2011-09-11 18:53:53

Death_Wish
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Points and Regions

I support both  big_smile

Actually, the first one would be easy with a When I receive <broacast> block, being like <broadcast[  ]and wait c> except When <broadcast> received  tongue


With a straight flush.
http://4.bp.blogspot.com/-FlUhnzmIROE/TgtpjdJl4tI/AAAAAAAABCM/W19pvFTZFaU/s1600/save_the_world.png http://blocsonic.com/images/special/rip-stevejobs.jpg

Offline

 

#4 2011-09-11 18:57:39

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Points and Regions

Death_Wish wrote:

I support both  big_smile

Actually, the first one would be easy with a When I receive <broacast> block, being like <broadcast[  ]and wait c> except When <broadcast> received  tongue

Yea I guess  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#5 2011-09-12 17:48:06

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Points and Regions

bump


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#6 2011-09-12 19:20:44

Trekkie210
Scratcher
Registered: 2010-08-04
Posts: 500+

Re: Points and Regions

jji7skyline wrote:

bump

I don't get it. E'splain?


http://memberfiles.freewebs.com/84/02/38380284/photos/Ponies/131426738106.gif

Offline

 

#7 2011-09-12 20:05:18

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Points and Regions

Trekkie210 wrote:

jji7skyline wrote:

bump

I don't get it. E'splain?

Points would allow you to go back, or to go forward to a particular point in any script.

Regions would specify how large a sprite is  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#8 2011-09-12 20:59:54

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

Re: Points and Regions

I'm afraid that I strongly disagree with your "points" idea. That's effectively the same as having a "goto" command (common in simple languages such as BASIC) which is largely regarded as leading to sloppy, disorganized code. Because of this, and because there are much better ways to do this, more powerful languages almost never have this. Since Scratch is about learning to program, I think it would be counter-productive to encourage a technique that is useless later on.

As for regions, I think I saw a similar suggestion like this before. I opposed it before, (on the grounds that you could achieve the same effect with a sensor sprite) but I am beginning to see its merits. I think it could be very useful.


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

Offline

 

#9 2011-09-12 21:11:46

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Points and Regions

Harakou wrote:

I'm afraid that I strongly disagree with your "points" idea. That's effectively the same as having a "goto" command (common in simple languages such as BASIC) which is largely regarded as leading to sloppy, disorganized code. Because of this, and because there are much better ways to do this, more powerful languages almost never have this. Since Scratch is about learning to program, I think it would be counter-productive to encourage a technique that is useless later on.

As for regions, I think I saw a similar suggestion like this before. I opposed it before, (on the grounds that you could achieve the same effect with a sensor sprite) but I am beginning to see its merits. I think it could be very useful.

Oh... I didn't realise that... but I thought it would be a cool way to use recursion, which I thought was a common feature in many languages...

As for regions, it would help avoid having to make sensor sprites for every button on a OS  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#10 2011-09-13 01:23:46

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Points and Regions

I support both  big_smile


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&amp;link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&amp;link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#11 2011-09-13 09:55:55

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Points and Regions

Harakou wrote:

I'm afraid that I strongly disagree with your "points" idea. That's effectively the same as having a "goto" command (common in simple languages such as BASIC) which is largely regarded as leading to sloppy, disorganized code. Because of this, and because there are much better ways to do this, more powerful languages almost never have this. Since Scratch is about learning to program, I think it would be counter-productive to encourage a technique that is useless later on.

As for regions, I think I saw a similar suggestion like this before. I opposed it before, (on the grounds that you could achieve the same effect with a sensor sprite) but I am beginning to see its merits. I think it could be very useful.

That would be true, if you could do OOP in Scratch. Do you know a programming language other than Scratch which doesn't have BOTH? Even C doesn't! (and you really don't want to make Scratch harder to program than C, do you?)

Offline

 

#12 2011-09-13 10:13:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Points and Regions

Support both!  big_smile

Offline

 

Board footer