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

#2576 2011-02-02 01:31:58

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

Page 104!!!


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#2577 2011-02-02 01:34:28

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

Re: BYOB 3 - Discussion Thread

14God wrote:

Page 104!!!

while yes, it's amazing that this got 104 pages, don't spam them.  wink

Last edited by scimonster (2011-02-02 01:34:34)

Offline

 

#2578 2011-02-02 02:28:04

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

A concept I got for making programing a bit faster. https://sites.google.com/site/byobimage … letteblock
Its a variable palette that gives you a faster reference then browsing thru the blocks list.
(If you guys prefer I can continue to post blocks in this way instead of putting them directly in the forum.)

I accidentally put 'kill threads' in <(kill threads) contains> it should be 'kill name'

Last edited by 14God (2011-02-02 14:37:17)


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#2579 2011-02-02 02:44:45

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

Re: BYOB 3 - Discussion Thread

Suggestion for BYOB 3.1: Like the Default value next to the single input in the block editor variable creator, have Default amount or the multiple inputs.

Offline

 

#2580 2011-02-02 11:22:32

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: BYOB 3 - Discussion Thread

Suggestion: (attribute [parts] of [Stage]) returns a list of all sprites.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#2581 2011-02-02 12:36:48

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

14God wrote:

A concept I got for making programing a bit faster. https://sites.google.com/site/byobimage … letteblock
Its a variable palette that gives you a faster reference then browsing thru the blocks list.

I must be missing something -- I don't see what this has to do with variables!  Please explain.

(If you guys prefer I can continue to post blocks in this way instead of putting them directly in the forum.)

Either way is fine.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2582 2011-02-02 12:41:12

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

Suggestion for BYOB 3.1: Like the Default value next to the single input in the block editor variable creator, have Default amount or the multiple inputs.

So, you mean, every time you click the right arrow you get a pre-filled-in new input slot?  Interesting.  What I've been agitating for in that position is a place to specify a default number of input slots, for things like my JOIN WORDS block, which takes any number of inputs but should have 2 by default because it doesn't make much sense for just one word.

Like all feature requests unrelated to first class sprites and cloning, this is unlikely to get into 3.1, but maybe later.

You can enter feature requests at http://byobugs.com by choosing "enhancement" from the "severity" dropdown menu, by the way.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2583 2011-02-02 12:43:06

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

scimonster wrote:

Suggestion for BYOB 3.1: Like the Default value next to the single input in the block editor variable creator, have Default amount or the multiple inputs.

So, you mean, every time you click the right arrow you get a pre-filled-in new input slot?  Interesting.  What I've been agitating for in that position is a place to specify a default number of input slots, for things like my JOIN WORDS block, which takes any number of inputs but should have 2 by default because it doesn't make much sense for just one word.

Like all feature requests unrelated to first class sprites and cloning, this is unlikely to get into 3.1, but maybe later.

You can enter feature requests at http://byobugs.com by choosing "enhancement" from the "severity" dropdown menu, by the way.

No, that's what I meant. Default amount of inputs.

Offline

 

#2584 2011-02-02 12:43:09

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

rubiks_cube_guy238 wrote:

Suggestion: (attribute [parts] of [Stage]) returns a list of all sprites.

Hmm, interesting.  We certainly need a way to get a list of all the sprites.  I was thinking we'd have to provide an ALL SPRITES block; your way reduces the block footprint, but tinkerers who don't read the manual might never find it!

EDIT:  Jens wants to solve this problem by adding an ALL SPRITES choice to the OBJECT block's pulldown.

Last edited by bharvey (2011-02-02 16:11:30)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2585 2011-02-02 14:34:56

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

14God wrote:

A concept I got for making programing a bit faster. https://sites.google.com/site/byobimage … letteblock
Its a variable palette that gives you a faster reference then browsing thru the blocks list.

I must be missing something -- I don't see what this has to do with variables!  Please explain.
.

Its just a concept for any block that passes out variables or reporters so you don't have to go to the panel on the left to get them. Still kinda a half baked idea.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#2586 2011-02-02 16:33:19

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

14God wrote:

Its just a concept for any block that passes out variables or reporters so you don't have to go to the panel on the left to get them. Still kinda a half baked idea.

Oh now I get it!

I'm a little surprised that you can use the upvars outside the scope of the block that creates them.  I didn't know BYOB could do that.  smile

I was confused before because the code mostly seemed to be about killing something and I discounted the use of the upvars.
I don't know if I like the FOREVER part, though; it'll slow down other computations.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2587 2011-02-02 16:54:26

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

I don't know if I like the FOREVER part, though; it'll slow down other computations.

Thats why I added a kill thread command, so when your done using a certain palette you can kill its update thread.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#2588 2011-02-03 03:02:21

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

14God wrote:

Its just a concept for any block that passes out variables or reporters so you don't have to go to the panel on the left to get them. Still kinda a half baked idea.

Oh now I get it!

I'm a little surprised that you can use the upvars outside the scope of the block that creates them.  I didn't know BYOB could do that.  smile

... (ahem) being able to use upvars outside the scope of their home context is a - let's call it - side effect, that you shouldn't make your project rely on. It's sometimes hard to explicitly kill stuff in Smalltalk  smile

Last edited by Jens (2011-02-03 03:02:41)


Jens Mönig

Offline

 

#2589 2011-02-03 08:53:59

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@ bharvey & Jens

Please have a look at my "micro-rpg demo" using and explaining the new (although provisional) Byob extensions : http://www.xleroy.net/ByobTuto/Thumbnails.html

At this stage I see 3 levels of sprite hierarchy : 1 - master for control and coordination of the whole project 2 - one prototype per group (or family) 3 - as many "lambda" copies (or children) as needed. All this stuff is linked by broadcast + semi-persistent variables.

I'm not still comfortable with "sharing/hierarchy" of functions/variables, but semi-persistent variables offer a good walk around : dedicated to one single sprite (if needed), not visible in the variable panel, well protected, flexible to store any kind of data.

It is a contribution to your efforts to re-think or re-design your Byob 3.

Offline

 

#2590 2011-02-03 09:03:05

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

Re: BYOB 3 - Discussion Thread

scimonster wrote:

bharvey wrote:

scimonster wrote:

Suggestion for BYOB 3.1: Like the Default value next to the single input in the block editor variable creator, have Default amount or the multiple inputs.

So, you mean, every time you click the right arrow you get a pre-filled-in new input slot?  Interesting.  What I've been agitating for in that position is a place to specify a default number of input slots, for things like my JOIN WORDS block, which takes any number of inputs but should have 2 by default because it doesn't make much sense for just one word.

Like all feature requests unrelated to first class sprites and cloning, this is unlikely to get into 3.1, but maybe later.

You can enter feature requests at http://byobugs.com by choosing "enhancement" from the "severity" dropdown menu, by the way.

No, that's what I meant. Default amount of inputs.

Actually, both would be really cool, but the link doesn't work.

Offline

 

#2591 2011-02-03 10:33:52

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

Actually, both would be really cool, but the link doesn't work.

The byobugs link?  It works for me!  Are you behind a school firewall or something?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2592 2011-02-03 10:38:12

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

xly wrote:

At this stage I see 3 levels of sprite hierarchy : 1 - master for control and coordination of the whole project 2 - one prototype per group (or family) 3 - as many "lambda" copies (or children) as needed. All this stuff is linked by broadcast + semi-persistent variables.

I'll look at it this evening, but meanwhile, the above may well describe your style of work, but other people will work differently.  A project doesn't have to have a master sprite, and there can be children of one sprite who are themselves parents of other sprites.  The classic example is the project with elephants, a few of whom are pink elephants.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2593 2011-02-03 10:48:03

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

scimonster wrote:

Actually, both would be really cool, but the link doesn't work.

The byobugs link?  It works for me!  Are you behind a school firewall or something?

no school.
firefox is saying it can't find the server. i have vista.

Offline

 

#2594 2011-02-03 11:38:59

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

http://byobugs.com was apparently down the last couple of days, but now it's online again. Can you check again? Thanks!

edit: you might have to empty your browser cache or shift-click on the reload button in Firefox for force it to re-read the previously unreachable page.

Last edited by Jens (2011-02-03 11:40:19)


Jens Mönig

Offline

 

#2595 2011-02-03 12:01:44

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

xly wrote:

At this stage I see 3 levels of sprite hierarchy : 1 - master for control and coordination of the whole project 2 - one prototype per group (or family) 3 - as many "lambda" copies (or children) as needed. All this stuff is linked by broadcast + semi-persistent variables.

I'll look at it this evening, but meanwhile, the above may well describe your style of work, but other people will work differently.  A project doesn't have to have a master sprite, and there can be children of one sprite who are themselves parents of other sprites.  The classic example is the project with elephants, a few of whom are pink elephants.

I agree with you, It is just to start with (to stay on the RPG paradigm a hero has several weapons, each weapon as many properties and so on...)

For the tree-structure what about a structure of Sprites of Sprites like now for Costumes of Sprites, easily added, deleted, activated, imported, exported?

Ps - see Project notes for Instructions of above mentioned project..

Offline

 

#2596 2011-02-03 17:19:59

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

So... I've got a bit of a coding problem that may or may not be solvable through the new experimental features.

Recently I came back to A* path-finding in Scratch. A couple years ago I tried to make an AI pathfinder, but my first attempt didn't work so well. This time however, I've had more success. My only problem now involves parents and children. Once my AI has reached its goal, it is supposed to follow the parent of each tile back to the original square to find the shortest path. I can't find a practical way to do this, and I've been avoiding BYOB since with it I won't be able to upload my results to the Scratch website. How do you recommend I go about having a parent-child list system?

Offline

 

#2597 2011-02-03 18:36:14

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Once my AI has reached its goal, it is supposed to follow the parent of each tile back to the original square to find the shortest path

Does each tile have a unique next-closer-to-start neighbor?  If so, this sounds doable.  I wouldn't try to make that neighbor the parent of the tile; probably all the tiles should have one parent.  But each should have a variable whose value is the next neighbor.  Will that do it?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2598 2011-02-03 21:42:05

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

An exciting (well, to me, at least!) new experimental version.

Jens wrote:

This version introduces a whole new interface for dealing with objects. Most of it is internal and only half done, but you can already get an idea of where this might be going to (remember, we're still pre-alpha with this):

    - the new blocks have been moved into the "Operators" category and renamed
    - GET, SET TO, and DELETE have been generalized

You'll be able to query the value of any attribute with the universal GET block. The drop-down currently shows a list of almost all built-in attributes. Additionally you can drop a lambdafied (!) built-in reporter block into the argument slot and get the value of the attribute which it refers to. The beauty of this is, that you can also use the new ATTRIBUTE OF block to query arbitrary attributes of other sprites using the sender's blocks.

The same works for the new universal SET TO block, and even for the DELETE block. Deleting a sprite's built-in attribute (by deleting its system getter block) causes that particular attribute to be inherited from its prototype. You can try this currently for xPos, yPos and heading.

This is all very fresh and half-baked. Eventually this will also work with variables and custom blocks. There's still a lot to do, e.g. visual propagation of inherited attributes from prototoype to children (for parts it should work already), supporting all attributes etc. etc.

I had to enhance the file format to make the inheritance state of individual attributes persistent. You can still open any Scratch project and projects up to the current official release (3.0.8), but not projects saved with previous experimental versions. Don't worry, the final version will be fully backwards compatible, but it, too will not support every project made by an internal experimental release.

Enjoy!
--Jens


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#2599 2011-02-03 22:02:29

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

http://i302.photobucket.com/albums/nn100/fullmoon32/what.gif
Is this how the new get block is supposed to be used to query attributes of other sprites?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#2600 2011-02-03 23:58:32

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

Is this how the new get block is supposed to be used to query attributes of other sprites?

Yeah, but you can say THE [GET <PEN SIZE>] BLOCK instead of THE SCRIPT [REPORT ...].  As Jens keeps reminding me, the former is an abbreviation for the latter.  smile

Do you like it?  When this design is totally implemented it's going to be so cool!  For example you'll be able to have class variables by having the clones say

Code:

RUN [[THE SCRIPT [SET <foo> TO <bar>]] OF [OBJECT <PARENT>]]

(whereas just SETting it in the clone would make a private copy).


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

Board footer