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

#1851 2010-04-18 19:08:51

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

nXIII wrote:

SeptimusHeap wrote:

What are the ()s and selfs for?

self is the receiver of whatever message you are sending (the function). Just putting the message wouldn't work, it would say 'message not understood'. The ()'s are to help with layout, because if you put
self pointToX: self getVar: 'blah' y: 0.
it wouldn't work because 'pointToX:getVar:y:' isn't a message, whereas with
self pointToX: (self getVar: 'blah') y: 0.
the messages are 'pointToX:y:' and 'getVar:'.

@Sep:
You aren't defining a new message (well, you're defining doIt and doitIn:, but let's not get into evaluations and contexts), so don't put the message name at the top. For example, your 'grab patch from screen' block would look like this:
___________________________________
grab from screen                |  -       |
-----------------------------------------------------
grabFromScreen.
^ self (optional, automatically included)
____________________________________
...

It doesn't work. Is there a special place to put the image? I just put it in the Panther1.1 folder after deleting Panther1.1.image.

Last edited by SeptimusHeap (2010-04-18 19:09:47)


http://i46.tinypic.com/dw7zft.png

Offline

 

#1852 2010-04-18 19:24:56

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

nXIII wrote:

SeptimusHeap wrote:

What are the ()s and selfs for?

self is the receiver of whatever message you are sending (the function). Just putting the message wouldn't work, it would say 'message not understood'. The ()'s are to help with layout, because if you put
self pointToX: self getVar: 'blah' y: 0.
it wouldn't work because 'pointToX:getVar:y:' isn't a message, whereas with
self pointToX: (self getVar: 'blah') y: 0.
the messages are 'pointToX:y:' and 'getVar:'.

@Sep:
You aren't defining a new message (well, you're defining doIt and doitIn:, but let's not get into evaluations and contexts), so don't put the message name at the top. For example, your 'grab patch from screen' block would look like this:
___________________________________
grab from screen                |  -       |
-----------------------------------------------------
grabFromScreen.
^ self (optional, automatically included)
____________________________________
...

It doesn't work. Is there a special place to put the image? I just put it in the Panther1.1 folder after deleting Panther1.1.image.

Sorry, it's 'self grabFromScreen', and it can only be sprite-specific because the grabFromScreen method only belongs to ScratchSpriteMorph. And for some reason, the block itself doesn't work for me.

New idea:
I am going to slightly change the 'add a block...' in the block editor and make the base menu ask 'Stage', 'Sprite', or 'All' and supply the blocks for the selected class.


nXIII

Offline

 

#1853 2010-04-18 21:36:24

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Panther development thread

If you make a block called 'var %s' how do I read the value of %s?


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#1854 2010-04-18 21:58:42

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

MathWizz wrote:

If you make a block called 'var %s' how do I read the value of %s?

Do you mean with CYOB?
If so, use 't'+[argument number], i.e. 't1' or 't4'. I might change this to 'arg1' or 'arg4'.


nXIII

Offline

 

#1855 2010-04-18 22:17:43

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Panther development thread

Why doesn't this work?
http://img696.imageshack.us/img696/7273/costume2.png


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#1856 2010-04-18 22:29:12

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Panther development thread

Since you're working on 1.2, could you release 1.0?


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#1857 2010-04-18 22:51:10

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

MathWizz wrote:

Why doesn't this work?
http://img696.imageshack.us/img696/7273/costume2.png

Sorry,  just made a major bug fix in the custom block code (wow, I was pretty dumb). Redownload the 0.1.2.image and try it.

waveOSBeta wrote:

Since you're working on 1.2, could you release 1.0?

No, it's 0.1.0, and it is a dev version that will never be released.


nXIII

Offline

 

#1858 2010-04-18 22:57:57

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Panther development thread

Oh, OK. What about a private beta?

Sorry if I'm a bit annoying, just because I'm very excited.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#1859 2010-04-19 03:51:44

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

*_* wow, we got a lot of hits yesterday, and a skin design competition seems to be quite a popular idea... I know nXIII said it would be difficult, but does that mean difficult for us to impliment or for the to design? I think he said something about the skin being in several parts, so we could supply a folder with all the normal skin parts inside for people to redraw. People viewing the site seem to like the idea, and I have to say I like it and think it'll be really popular. if you look at the scratch poll on the homepage, some other suggestions have come up ^_^ right, I'm on the PC before going into physics so I'm gonna go revise :S ... see ya later, I have the afternoon off today.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1860 2010-04-19 04:03:22

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

I just had a neat idea, how hard would it be to connect Panther to the printer? we could get it to directly print out the stage or a grabbed section of the screen... with printer setup options, obviously as a block that quickly shoots out 100 copies of the stage isn't just annoying, it's expensive.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1861 2010-04-19 07:54:00

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

0.1.2 had some window open... I saved changes... Is that OK?


http://i46.tinypic.com/dw7zft.png

Offline

 

#1862 2010-04-19 08:06:59

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

Did you know?

Color blocks can fit in dropdown lists, like for broadcasts!


http://i46.tinypic.com/dw7zft.png

Offline

 

#1863 2010-04-19 08:20:22

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

nice! erm, sep, you have the first post here, could you put Our apologies, Panther is no longer accepting developers but we value your opinions and welcome your comments. Go to our home site or our wiki page for more information. in that post so people stop asking to join? ta.

EDIT: knew that wouldn't come out quite right the first time. I wanted the links to be purple  sad

oh no! my amazing purple pen ran out halfway through the physics exam :'(

Last edited by sparks (2010-04-19 08:23:06)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1864 2010-04-19 08:24:29

climber59
Scratcher
Registered: 2009-12-15
Posts: 100+

Re: Panther development thread

Sparks, at this point with 75 pages who would be reading the first post?


Check out my projects if you have a chance.

Offline

 

#1865 2010-04-19 08:27:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

fair enough, but that's what I always do.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1866 2010-04-19 08:31:44

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Panther development thread

What would be the code for a 'delete costume' block?


http://i46.tinypic.com/dw7zft.png

Offline

 

#1867 2010-04-19 08:45:03

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

dunno, I tried that one and failed


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1868 2010-04-19 09:05:55

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

What would be the code for a 'delete costume' block?

Sadly, it's not as easy as this.... I looked at it, and the delete button next to every costume has an instance of the class CostumeMedia or something as its receiver, NOT ScriptableScratchMorph. I think the only way to do this is make a new message that looks at all of the sprite's costumes and collects them into a dictionary.


nXIII

Offline

 

#1869 2010-04-19 09:15:53

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

hey nXIII, you're on early! I'll take this oppertunity to mention some things:

how useful do you think the printer connection for Panther would be? with better pen blocks, people might start making more art projects.

can we have a fps reporter, there's already an morph in the world menu so it shouldn't be hard, and it might allow projects to skip graphics if it's a slow fps to customise the experence for every computer.

the date time blocks work now, but the date option still reports false in an = block.

any luck getting the scratch cat image replaced with the Panther logo for the EXE file?

could you describe what kind of thing would go into a skin design, as it seems to be quite popular.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1870 2010-04-19 09:45:01

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

sparks wrote:

hey nXIII, you're on early! I'll take this oppertunity to mention some things:

how useful do you think the printer connection for Panther would be? with better pen blocks, people might start making more art projects.

can we have a fps reporter, there's already an morph in the world menu so it shouldn't be hard, and it might allow projects to skip graphics if it's a slow fps to customise the experence for every computer.

the date time blocks work now, but the date option still reports false in an = block.

any luck getting the scratch cat image replaced with the Panther logo for the EXE file?

could you describe what kind of thing would go into a skin design, as it seems to be quite popular.

Hi! I'm on early 'cause I have today and tomorrow off!

I STRONGLY recommend not making printer connection available due to viruses:
- constant spewing out of pages is, as someone said before me, not only annoying but costly.
- a way to get around a warning: show a dialog that says "The following printer operations are to enable the screenshot feature. Please click 'Always' to allow the screenshot feature to function properly; next thing you know it's in an infinite loop that has hundreds of identical blocks in a hidden sprite that are all printing.

FPS reporter - I believe that the Scratch stepping doesn't have much to do with the world stepping, so the method in the morph wouldn't do too much for you.

Yea, sorry, that's my old solution; I need to make it the new solution.

No

The problem with the skin design is that you have
A) Around 275 images
B) A bunch of background colors set in the code
This means that not only would people in the competition have to design a ton of images, they would have to be good enough at modding the source to figure out every single background color that needed changing, and would have to change it to test it.


nXIII

Offline

 

#1871 2010-04-19 09:48:21

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

so should I remove the skin idea from the Panther site? It would have been nice  hmm


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1872 2010-04-19 10:03:17

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

sparks wrote:

so should I remove the skin idea from the Panther site? It would have been nice  hmm

No, I'm not saying it shouldn't be there, it would just be a lot of work to make a skin.


nXIII

Offline

 

#1873 2010-04-19 10:06:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

right. maybe in a second release or something, a folder with the skin items in it, and instructions for changing the background colours? I'm wondering if each skin is a couple of hundred images, that would make a pretty big folder for Panther, so if anything, people would have to be able to choose a skin they like from the site, and install it.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#1874 2010-04-19 10:11:22

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Panther development thread

sparks wrote:

right. maybe in a second release or something, a folder with the skin items in it, and instructions for changing the background colours? I'm wondering if each skin is a couple of hundred images, that would make a pretty big folder for Panther, so if anything, people would have to be able to choose a skin they like from the site, and install it.

Well, actually, the skin is embedded in Panther already, so you could just have images like 'Panther.image', 'Sparkly.image', 'Monochrome.image', or embed each skin in a dictionary in ScratchFrameMorph so one could switch between them while using Panther. The folder is there so I can reload the skin if I change anything.


nXIII

Offline

 

#1875 2010-04-19 10:14:25

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Panther development thread

could panther read a skin if it was distributed as a dll or ext file? that way it would still be Panther.image, keeping the name, but a menu lets you open a browser and select a skin file?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer