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

#4876 2012-03-24 15:52:03

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

Re: BYOB 3 - Discussion Thread

Of course, that's exactly how an object oriented system has to be. But there are things which are way more pressing to implement. Way more. And then there has to be a complete redesign of the GUI. And of the blocks, too.

Last edited by Jens (2012-03-24 15:52:36)


Jens Mönig

Offline

 

#4877 2012-03-24 16:57:28

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

But there are things which are way more pressing to implement.

Indeed, in some ways we haven't gotten to Scratch-level completion.  I didn't at all mean to suggest otherwise.


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

Offline

 

#4878 2012-03-24 17:17:22

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

demosthenes wrote:

Wow! You've really thought of everything  big_smile

Offstage sprites  big_smile

Yeah, actually that was right at the beginning of my collaboration with Jens.  I had written a program that made big recursive fractals, and if they got bigger than the stage size, the sprite ended up not retracing its steps correctly because it would get stuck in one place when trying to move offstage, and so its idea of its location was wrong.  Jens fixed it by letting my sprite offstage, so it is conceptually drawing on an infinite stage of which we see only a finite window.  (Not  everyone remembers this any more, but that's the reason for the name "window"; the onscreen rectangle is a limited view onto an infinite plane.)

Sorry to bring up a *really* old post, but i was just reading through the early posts and had an idea when i read this one: What if you could pan around the view of the infinite stage? There could be blocks like

centre view on x:() y:()
say (view centre x)
say (view centre y)
set view zoom to () %
say (view zoom)
(ignore the
say []
blocks they are only there to prevent the glitch where the scratchblocks tag where lone reporters go to the top)

Last edited by joefarebrother (2012-03-24 17:19:42)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4879 2012-03-24 18:49:58

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

What if you could pan around the view of the infinite stage?

Are you familiar with Alice?  It's the main competition to Scratch.  Its big supposed feature is that it's 3-D, so you can make cooler animations.  But the Scratch Team deliberately chose to make the Scratch stage 2-D to avoid one of the huge problems with Alice:  You write a program, you run it, nothing happens at all, and you spend days banging your head against the wall until someone reminds you to check the camera angle; the program was really correct all along except that all the action is happening offstage.

I think your suggestion would give rise to the same problem.  The point of window mode isn't to make enormous pictures and then scroll around in them, but rather to allow the occasional, temporary disappearance of a sprite offstage without making the rest of the animation fail.


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

Offline

 

#4880 2012-03-25 03:04:54

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

I think your suggestion would give rise to the same problem.

well there could be a small arrow to remind you that there are some sprites offstage, and you can disable theese arrows later but they are there by default whenever there is a sprite offstage. Also if you think memory would be an issue, there could be SOME limit to how far you can scroll (maybe you could event set this limit yourself, with an absolute limit of how high you can set the limit).

bharvey wrote:

The point of window mode isn't to make enormous pictures and then scroll around in them

Well it could be not just for pictures but also for side scrolling games!


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4881 2012-03-25 04:16:26

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

bharvey wrote:

I think your suggestion would give rise to the same problem.

well there could be a small arrow to remind you that there are some sprites offstage, and you can disable theese arrows later but they are there by default whenever there is a sprite offstage. Also if you think memory would be an issue, there could be SOME limit to how far you can scroll (maybe you could event set this limit yourself, with an absolute limit of how high you can set the limit).

bharvey wrote:

The point of window mode isn't to make enormous pictures and then scroll around in them

Well it could be not just for pictures but also for side scrolling games!

This can already be easily done by programming solutions with Scratch. Many examples of this can be found on the Scratch site. I've already given some examples of "strategy games" where you need to move many units on a map 4 times larger that the window screen. It works fine.

Offline

 

#4882 2012-03-25 07:43:10

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hey Jens, I like the GUI idea of dragging resources onto Snap, but it won't work (on a Mac, at least) because browsers automatically display that file when a file is dropped onto a window (with a file:/// path for local paths). So, how do you plan to get around that?  hmm


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4883 2012-03-25 08:55:08

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

What if you could pan around the view of the infinite stage? There could be blocks like ...

I don't know about panning, but I'm all for a hi-res stage.  smile

Offline

 

#4884 2012-03-25 08:58:12

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Hey Jens, I like the GUI idea of dragging resources onto Snap, but it won't work (on a Mac, at least) because browsers automatically display that file when a file is dropped onto a window (with a file:/// path for local paths). So, how do you plan to get around that?  hmm

Isn't there that fancy new HTML5 API for drag/drop? Some sites I've seen manage to get around the problem, anyway, I'm sure...


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#4885 2012-03-25 09:03:39

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

Re: BYOB 3 - Discussion Thread

Um, I'm developing Snap on a Mac and drag & drop works fine (mostly). I'm sure we'll get the rest to work, too  smile


Jens Mönig

Offline

 

#4886 2012-03-25 13:13:16

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Um, I'm developing Snap on a Mac and drag & drop works fine (mostly). I'm sure we'll get the rest to work, too  smile

Works fine for me Win XP + Chrome

Offline

 

#4887 2012-03-26 15:03:11

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

xly wrote:

joefarebrother wrote:

bharvey wrote:

I think your suggestion would give rise to the same problem.

well there could be a small arrow to remind you that there are some sprites offstage, and you can disable theese arrows later but they are there by default whenever there is a sprite offstage. Also if you think memory would be an issue, there could be SOME limit to how far you can scroll (maybe you could event set this limit yourself, with an absolute limit of how high you can set the limit).

bharvey wrote:

The point of window mode isn't to make enormous pictures and then scroll around in them

Well it could be not just for pictures but also for side scrolling games!

This can already be easily done by programming solutions with Scratch. Many examples of this can be found on the Scratch site. I've already given some examples of "strategy games" where you need to move many units on a map 4 times larger that the window screen. It works fine.

well it is SO annoying when your making a picture using the pen and the picture is too big so you can't see it all.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4888 2012-03-27 02:41:13

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Um, I'm developing Snap on a Mac and drag & drop works fine (mostly). I'm sure we'll get the rest to work, too  smile

Still not working for me on Safari...  hmm


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4889 2012-03-27 05:08:06

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

Re: BYOB 3 - Discussion Thread

in Safari importing local files via drag & drop doesn't yet work, but importing images from other web pages does. Try Chrome or Firefox! (and, BTW, wait until tonight, then costumes and backgrounds will actually do something)  smile


Jens Mönig

Offline

 

#4890 2012-03-27 07:15:19

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

in Safari importing local files via drag & drop doesn't yet work, but importing images from other web pages does. Try Chrome or Firefox! (and, BTW, wait until tonight, then costumes and backgrounds will actually do something)  smile

Nope, not working. But let me make sure I'm doing right:

Open up Snap!
Click on the costumes tab
In a new window, open a picture
Drag to the costumes panel and drop

Nothing happens. I even tried dragging the address/path.  sad


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4891 2012-03-27 08:00:21

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Jens wrote:

in Safari importing local files via drag & drop doesn't yet work, but importing images from other web pages does. Try Chrome or Firefox! (and, BTW, wait until tonight, then costumes and backgrounds will actually do something)  smile

Nope, not working. But let me make sure I'm doing right:

Open up Snap!
Click on the costumes tab
In a new window, open a picture
Drag to the costumes panel and drop

Nothing happens. I even tried dragging the address/path.  sad

Yeh I tried that method in Firefox as well and it still didn't work - there must be a super secret method of doing it.


http://i.imgur.com/zeIZW.png

Offline

 

#4892 2012-03-27 08:24:10

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

Re: BYOB 3 - Discussion Thread

okay, I've updated the pre-alpha and now it almost fully supports costumes and backgrounds ("almost fully" meaning that nothing works perfectly yet  smile  ). At the moment it's best to use Firefox, where everything works pretty much as it should right now, second best is Chrome. With Safari, only importing pictures from another website works, but only if it's just an IMG element. We'll work on that part!

Just so you don't report it: Saving/Loading of costumes doesn't work, and the costume's rotation center doesn't yet have any effect.

Enjoy!

Last edited by Jens (2012-03-27 08:24:28)


Jens Mönig

Offline

 

#4893 2012-03-27 08:39:54

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

Re: BYOB 3 - Discussion Thread

works perfectly on firefox, not working on chrome  hmm

you may want to remove the turtle sprite on the stage, and change the blocks to say background and not costume  smile

i guess base64 encoding will do it with the saving?

[offtopic]
bharvey, i need some advice  wink
do you think it's a good idea to allow different spelling of commands in a text-IDE for scratch? dunno, it's like confusing for new scratchers to use it if the commands are like '%n of %s', but no one experienced enough really wants to write to much...
what do you think?
maybe a 'short writing mode' would go...  hmm

Last edited by roijac (2012-03-27 08:53:27)

Offline

 

#4894 2012-03-27 08:52:46

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

Re: BYOB 3 - Discussion Thread

@Jens

When I said "Works fine for me Win XP + Chrome", I was wrong. With Chrome Drag and Drop works to upload picture into the Costumes corral, but no into the screen. Contrarily to Firefox where Drag'n dropping a picture into the window changes the "triangle" costume to the new dragged picture.
It also works for the Stage picture.

Offline

 

#4895 2012-03-27 10:22:03

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

okay, I've updated the pre-alpha and now it almost fully supports costumes and backgrounds ("almost fully" meaning that nothing works perfectly yet  smile  ). At the moment it's best to use Firefox, where everything works pretty much as it should right now, second best is Chrome. With Safari, only importing pictures from another website works, but only if it's just an IMG element. We'll work on that part!

Just so you don't report it: Saving/Loading of costumes doesn't work, and the costume's rotation center doesn't yet have any effect.

Enjoy!

It's really not working for me. I cleared my cache, opened up Snap!, dragged in the latest Google Doodle, and watched Safari do nothing and FireFox ask me if I want to navigate away from Snap!

Am I missing something here?!  sad


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4896 2012-03-27 10:49:58

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

Re: BYOB 3 - Discussion Thread

@Jens
To my experience I've never had any problem with Snap! using Chrome (+Win Xp). Not one. Contrarily to Firefox which is very touchy and unstable for Snap!
My Chrome is used exclusively for Snap! No add-ons, no bookmarks etc

Offline

 

#4897 2012-03-27 10:56:37

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

do you think it's a good idea to allow different spelling of commands in a text-IDE for scratch? dunno, it's like confusing for new scratchers to use it if the commands are like '%n of %s', but no one experienced enough really wants to write to much...
what do you think?

Those percent-sign format strings aren't names!  Nobody ever intended for users to see them.  The name is OF, or, if you really want the full formal name, _OF_.

You're thinking, "but what about the two LENGTH blocks?"  They have the same name, and that confuses users, but it doesn't help unconfuse the users to tell them that they have two different format strings.  (What would help would be to have only one LENGTH block, btw.)

Anyway, if this helps, what the original implementations of Logo did was to allow abbreviations but to expand them when typed.  So you'd type "FD 100" and what you'd see on the screen was "FORWARD 100."  You could do that.


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

Offline

 

#4898 2012-03-27 13:51:57

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

roijac wrote:

do you think it's a good idea to allow different spelling of commands in a text-IDE for scratch? dunno, it's like confusing for new scratchers to use it if the commands are like '%n of %s', but no one experienced enough really wants to write to much...

Those percent-sign format strings aren't names!  Nobody ever intended for users to see them.  The name is OF, or, if you really want the full formal name, _OF_.

You're thinking, "but what about the two LENGTH blocks?"  They have the same name, and that confuses users, but it doesn't help unconfuse the users to tell them that they have two different format strings.  (What would help would be to have only one LENGTH block, btw.)

As I bharvey is saying, I think, it doesn't actually matter; you can work out which block they mean based on context.

If your parser sees ([sqrt] of (10)); or ([x position] of [cat])  — it can work out which function you're referring to (in Scratch, either "computeFunction:of:" or "getAttribute:of:"), based on the arguments passed to it.

([sqrt v] of (10))
([x position v] of [cat v])
Same works for the length blocks, as bharvey pointed out — you just need to check the type of the argument.


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#4899 2012-03-27 14:13:09

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

bharvey wrote:

roijac wrote:

do you think it's a good idea to allow different spelling of commands in a text-IDE for scratch? dunno, it's like confusing for new scratchers to use it if the commands are like '%n of %s', but no one experienced enough really wants to write to much...

Those percent-sign format strings aren't names!  Nobody ever intended for users to see them.  The name is OF, or, if you really want the full formal name, _OF_.

You're thinking, "but what about the two LENGTH blocks?"  They have the same name, and that confuses users, but it doesn't help unconfuse the users to tell them that they have two different format strings.  (What would help would be to have only one LENGTH block, btw.)

As I bharvey is saying, I think, it doesn't actually matter; you can work out which block they mean based on context.

If your parser sees ([sqrt] of (10)); or ([x position] of [cat])  — it can work out which function you're referring to (in Scratch, either "computeFunction:of:" or "getAttribute:of:"), based on the arguments passed to it.

([sqrt v] of (10))
([x position v] of [cat v])
Same works for the length blocks, as bharvey pointed out — you just need to check the type of the argument.

yep- it's a common programming idom called 'overloading' - selecting which function to use based on what type of inputs are given.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4900 2012-03-27 14:21:53

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

Re: BYOB 3 - Discussion Thread

@Jens - Custom block no more available (Obsolete in red)  when a sprite using this block is duplicated.

Offline

 

Board footer