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

#3651 2010-08-06 17:07:35

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

Re: Panther development thread

markyparky56 wrote:

I think theres a method or something in squeak which allows you to stamp whole words, Bharvey talked about it a while back.

All I remember talking about is STAMP, with the words in a costume, but after a little poking around I found

Graphics-Primitives>Pen>Operations>print:withFont:

and I bet you could make a CYOB block using it.


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

Offline

 

#3652 2010-08-06 17:08:16

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Panther development thread

Is that a challange?


You can now reach me on Twitter @johnnydean1_

Offline

 

#3653 2010-08-07 06:15:45

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

Re: Panther development thread

ah, I tried

Code:

self print: t1 withFont: t2

but to no avail!


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

Offline

 

#3654 2010-08-07 06:59:39

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

sparks wrote:

ah, I tried

Code:

self print: t1 withFont: t2

but to no avail!

Nice try...

@Bharvey Maybe I just read it wrong...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#3655 2010-08-07 11:08:15

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

Re: Panther development thread

sparks wrote:

ah, I tried

Code:

self print: t1 withFont: t2

but to no avail!

Were you talking to a pen?  (I'm wondering about the "self" part.)  This sort of works for me:

Code:

Pen new print: aString withFont:  (ScratchFrameMorph getFont: #TalkBubble)

but you have to tweak some of the variables of the pen, and get it positioned right, etc.


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

Offline

 

#3656 2010-08-07 13:17:43

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

Re: Panther development thread

If you can access the stage's penTrailsForm then you have ultimate control: make a FormCanvas on it and you can draw rectangles, ovals, probably text (I forget), lines, and more!


nXIII

Offline

 

#3657 2010-08-07 13:56:17

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

Re: Panther development thread

...how?


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

Offline

 

#3658 2010-08-07 15:09:11

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

sparks wrote:

...how?

yes, how do you get ultimate control!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#3659 2010-08-07 18:34:25

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

Re: Panther development thread

(self ownerThatIsA: ScratchStageMorph) penTrailsForm

Let's see, here are some examples:

Code:

| stage form canvas |
"Get the stage and pen trails Form."
(stage := self ownerThatIsA: ScratchStageMorph) ifNotNil: [stage createOrResizeTrailsForm. form := stage penTrailsForm] ifNil: [^ self].
"Make a FormCanvas"
canvas := FormCanvas on: form.
"Rectangle"
canvas fillRectangle: (0@0 extent: 480@180) color: Color black.
"Text"
canvas text: 'Hello, World!' at: 50@50 font: (ScratchFrameMorph getFont: #Arg) color: Color red.
canvas text: 'Hello, World!' at: 20@30 font: (ScratchFrameMorph getFont: #DialogBoxTitle) color: Color white.
"Ovals"
canvas fillOval: (0@0 extent: 300@100) color: (Color green alpha: 0.4) borderWidth: 3 borderColor: Color green darker darker.
canvas fillOval: (40@40 extent: 200@80) color: (TranslucentColor r: 0 g: 1 b: 1 alpha: 0.3).
canvas fillOval: (100@20 extent: 200@140) color: (TranslucentColor r: 1 g: 1 b: 0 alpha: 0.5).
"Update the stage, otherwise you won't see the pen marks"
stage changed.

Last edited by nXIII (2010-08-07 18:34:42)


nXIII

Offline

 

#3660 2010-08-08 13:55:51

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

Re: Panther development thread

well I sucessfully turned all those into Panther custom blocks ^.^ nice stuff too, the text stamper is instantanious but there isn't a way to change font size. what we really need is a dropdown for the font or you have to remember the names and type them properly:)

the other problem is that the numbers for the position (0@0) in the block code puts the drawn shape/text at -240,180 rather than 0,0 so I can get it to correct the X position by doing (t1+240@t2) but if I try to correct the Y position (t1+240@t2-180) it does not work  sad

Last edited by sparks (2010-08-08 13:59:11)


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

Offline

 

#3661 2010-08-08 19:35:53

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

Re: Panther development thread

(180 + t2 negated)


nXIII

Offline

 

#3662 2010-08-08 20:05:01

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: Panther development thread

has anyone written a run command block? there is the CommandLineSocket thing, but I have no idea how to interface it.


http://blocks.scratchr.org/API.php?user=paulpsicle&action=onlineStatus&online=http://fishery.dyndns.org/paulpsicle.png&offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#3663 2010-08-09 14:30:09

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

paulpsicle wrote:

has anyone written a run command block? there is the CommandLineSocket thing, but I have no idea how to interface it.

Don't think so... It won't really be helpful untill we release 1.1 with the multi-line text inserters. (Or will it make no difference...?)


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#3664 2010-08-09 19:26:58

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

Re: Panther development thread

I feel, well, not like a dev anymore  sad

Can I be a 'sub-dev?'


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

Offline

 

#3665 2010-08-10 04:08:33

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

Re: Panther development thread

the feeling of not being a dev probably has something to do with the fact that you abdicated from your position  tongue


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

Offline

 

#3666 2010-08-10 07:36:22

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Panther development thread

SeptimusHeap wrote:

I feel, well, not like a dev anymore  sad

Can I be a 'sub-dev?'

Why do you want to be a sub-dev? and what does a sub-dev do?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#3667 2010-08-10 08:17:24

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

Re: Panther development thread

IDK. I liked being a dev  big_smile

And I was the founder...


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

Offline

 

#3668 2010-08-10 19:06:36

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

Re: Panther development thread

Sorry  sad  .

I never said you didn't do a big part to help this project.


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

Offline

 

#3669 2010-08-10 19:53:35

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

Re: Panther development thread

SeptimusHeap wrote:

Sorry  sad  .

I never said you didn't do a big part to help this project.

I was joking  tongue
As in, you're the founder, I'm the programmer...

Oh, wait, I read your post wrong. *bangs head against desk* Really sorry...
You can be a dev again if you want, we don't care.

Last edited by nXIII (2010-08-10 19:55:57)


nXIII

Offline

 

#3670 2010-08-12 11:49:50

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Panther development thread

Oh, no! The Panther development thread actually fell to the second page!  sad


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3671 2010-08-12 13:45:11

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: Panther development thread

ScratchReallyROCKS wrote:

Oh, no! The Panther development thread actually fell to the second page!  sad

IT'S THE END OF THE WORLD!
Do you think panther might be losing popularity?

Offline

 

#3672 2010-08-12 14:01:24

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Panther development thread

majormax wrote:

ScratchReallyROCKS wrote:

Oh, no! The Panther development thread actually fell to the second page!  sad

IT'S THE END OF THE WORLD!
Do you think panther might be losing popularity?

I hope not!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3673 2010-08-12 14:10:12

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

Re: Panther development thread

yup, we need to release 1,1 but everyone on the team is on holiday (other than me, nXIII and MP56)


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

Offline

 

#3674 2010-08-12 14:13:05

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Panther development thread

sparks wrote:

yup, we need to release 1,1 but everyone on the team is on holiday (other than me, nXIII and MP56)

Yeah, you guys are falling behind!  tongue  BYOB 3 is out and Panther is still stuck at 1.0.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3675 2010-08-12 15:40:31

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

Re: Panther development thread

But BYOB 1 came out years ago!


nXIII

Offline

 

Board footer