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

#826 2010-04-11 12:46:41

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

Re: Panther development thread

johnnydean1 wrote:

May I ask NXIII how you changed MISC to colour?

Why do you care? >.>
Misc was useless.

@sep

whileTrue: [
    t2 _ t2 - 1.
    t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.
]

Last edited by nXIII (2010-04-11 12:47:11)


nXIII

Offline

 

#827 2010-04-11 12:48:00

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

sparks wrote:

Sperry wrote:

@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.

Haha, Wirklich? Meine Lieblingsfarbe WAR blau, aber jetzt ist es violet!... Das ist halt Deutsch, ich mach das in der Abitur...

All I can say:
Meine Lieblingsfarbe WAR grun.

I only learn German as a 3rd Language.

EDIT:
@nXIII:
Wheres ScratchSkin located?

Last edited by Sperry (2010-04-11 12:49:00)


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#828 2010-04-11 12:50:25

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

Re: Panther development thread

YUSSS! THANK YOU NXIII! YOU ARE DAH PROGRAMMAH!

Woot!

Last edited by SeptimusHeap (2010-04-11 12:51:04)


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

Offline

 

#829 2010-04-11 12:53:40

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

Re: Panther development thread

How do you put anything after a WhileTrue?


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

Offline

 

#830 2010-04-11 12:54:10

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

SeptimusHeap wrote:

YUSSS! THANK YOU NXIII! YOU ARE DAH PROGRAMMAH!

Woot!

Darn. I was getting there!


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#831 2010-04-11 13:03:31

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

Re: Panther development thread

SeptimusHeap wrote:

How do you put anything after a WhileTrue?

Code:

listaverage: t1 
    | t2 t3 t4 t5 t6 |
    t2 _ t1 lineCount.
    t6 _ t1 lineCount.
    t3 _ 0.
    t4 _ 1.
    [t2 >= 0]
        whileTrue: 
            [t2 _ t2 - 1.
            t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1]
    t5 = t3 /  <- argument of whileTrue: must be a block or variable ->t6.
    ^t5

Can anyone help fix hat error? They would be DA PROGRAMMAH!


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

Offline

 

#832 2010-04-11 13:03:46

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

Re: Panther development thread

I dont like the colour section... it looks horrible and kinda pointless...


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

 

#833 2010-04-11 13:06:53

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

SeptimusHeap wrote:

SeptimusHeap wrote:

How do you put anything after a WhileTrue?

Code:

listaverage: t1 
    | t2 t3 t4 t5 t6 |
    t2 _ t1 lineCount.
    t6 _ t1 lineCount.
    t3 _ 0.
    t4 _ 1.
    [t2 >= 0]
        whileTrue: 
            [t2 _ t2 - 1.
            t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1]
    t5 = t3 /  <- argument of whileTrue: must be a block or variable ->t6.
    ^t5

Can anyone help fix hat error? They would be DA PROGRAMMAH!

t5 = t3 .....

no, no, no:

t5 _ t3 .....


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#834 2010-04-11 13:08:06

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

Re: Panther development thread

Oops! Simple error.

Thanks DAH ERROR FIXAH!


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

Offline

 

#835 2010-04-11 13:09:06

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

Re: Panther development thread

No! Eet steel doz eet!

Code:

listaverage: t1 
    | t2 t3 t4 t5 t6 |
    t2 _ t1 lineCount.
    t6 _ t1 lineCount.
    t3 _ 0.
    t4 _ 1.
    [t2 >= 0]
        whileTrue: 
            [t2 _ t2 - 1.
            t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1]
     <- argument of whileTrue: must be a block or variable ->t5 _ t3 / t6.
    ^t5

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

Offline

 

#836 2010-04-11 13:12:10

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

SeptimusHeap wrote:

No! Eet steel doz eet!

Code:

listaverage: t1 
    | t2 t3 t4 t5 t6 |
    t2 _ t1 lineCount.
    t6 _ t1 lineCount.
    t3 _ 0.
    t4 _ 1.
    [t2 >= 0]
        whileTrue: 
            [t2 _ t2 - 1.
            t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.t4 _ t4 + 1]
     <- argument of whileTrue: must be a block or variable ->t5 _ t3 / t6.
    ^t5

It looks like you havent ended the whileTrue: <- argument of whileTrue: must be a block or variable ->


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#837 2010-04-11 13:13:38

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

Re: Panther development thread

How do I? That's the problem.


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

Offline

 

#838 2010-04-11 13:15:23

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

Re: Panther development thread

Stupid me. I forgot the period.


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

Offline

 

#839 2010-04-11 13:15:41

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

SeptimusHeap wrote:

forgot the period

Eh - where?

Last edited by Sperry (2010-04-11 13:17:00)


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#840 2010-04-11 13:18:13

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

Re: Panther development thread

NOEZ I GETZ ERROR!

BlockSpec:

Code:

('average of numbers in %L' #r #listaverage: 'list')

listaverage:

Code:

listaverage: t1 
    | t2 t3 t4 t5 t6 |
    t2 _ t1 lineCount.
    t6 _ t1 lineCount.
    t3 _ 0.
    t4 _ 1.
    [t2 >= 0]
        whileTrue: 
            [t2 _ t2 - 1.
            t3 _ t3 + self getLine: (self lineNum: t4 forList: t1)
                        ofList: t1.
            t4 _ t4 + 1].
    t5 _ t3 / t6.
    ^ t5

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

Offline

 

#841 2010-04-11 13:19:18

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

Re: Panther development thread

No saving error, only execution error.


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

Offline

 

#842 2010-04-11 13:20:06

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

Try this:

BlockSpec:

Code:

('average of numbers in %L' #r #listAverage: 'list')

listaverage:

Code:

listAverage: t1 
    | t2 t3 t4 t5 t6 |
    t2 _ t1 lineCount.
    t6 _ t1 lineCount.
    t3 _ 0.
    t4 _ 1.
    [t2 >= 0]
        whileTrue: 
            [t2 _ t2 - 1.
            t3 _ t3 + self getLine: (self lineNum: t4 forList: t1)
                        ofList: t1.
            t4 _ t4 + 1].
    t5 _ t3 / t6.
    ^ t5

http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#843 2010-04-11 13:20:18

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

Re: Panther development thread

Ooh! I did inspect, and it does a 'Nothing more expected ->' on the listaverage line.


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

Offline

 

#844 2010-04-11 13:27:20

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

Re: Panther development thread

Help?


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

Offline

 

#845 2010-04-11 13:29:08

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

SeptimusHeap wrote:

Help?

Try what I wrote a couple of posts up.


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#846 2010-04-11 13:31:14

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

Re: Panther development thread

I did the listAverage part. It doesn't change anything.


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

Offline

 

#847 2010-04-11 13:33:10

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

Re: Panther development thread

markyparky56 wrote:

I dont like the colour section... it looks horrible and kinda pointless...

yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes   yikes


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

Offline

 

#848 2010-04-11 13:34:34

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

Try this:

BlockSpec:

Code:

('average of numbers in %L' #r #listAverage 'list')

listaverage:

Code:

listAverage 
    | t1 t2 t3 t4 t5 t6 |
    t2 _ t1 lineCount.
    t6 _ t1 lineCount.
    t3 _ 0.
    t4 _ 1.
    [t2 >= 0]
        whileTrue: 
            [t2 _ t2 - 1.
            t3 _ t3 + self getLine: (self lineNum: t4 forList: t1)
                        ofList: t1.
            t4 _ t4 + 1].
    t5 _ t3 / t6.
    ^ t5

You had no value to pass through.


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#849 2010-04-11 13:34:35

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

Re: Panther development thread

Sperry wrote:

sparks wrote:

Sperry wrote:

@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.

Haha, Wirklich? Meine Lieblingsfarbe WAR blau, aber jetzt ist es violet!... Das ist halt Deutsch, ich mach das in der Abitur...

All I can say:
Meine Lieblingsfarbe WAR grun.

I only learn German as a 3rd Language.

EDIT:
@nXIII:
Wheres ScratchSkin located?

no, no, I'm sorry, I cap's "war" to emphasise it, not correct you. "Meine Lieblingsfarbe was correct. To translate what I wrote after, "Haha, really? my fave color WAS blue, but now it's purple!... this is German which I study at A level.


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

Offline

 

#850 2010-04-11 13:36:51

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Panther development thread

sparks wrote:

Sperry wrote:

sparks wrote:

Haha, Wirklich? Meine Lieblingsfarbe WAR blau, aber jetzt ist es violet!... Das ist halt Deutsch, ich mach das in der Abitur...

All I can say:
Meine Lieblingsfarbe WAR grun.

I only learn German as a 3rd Language.

EDIT:
@nXIII:
Wheres ScratchSkin located?

no, no, I'm sorry, I cap's "war" to emphasise it, not correct you. "Meine Lieblingsfarbe was correct. To translate what I wrote after, "Haha, really? my fave color WAS blue, but now it's purple!... this is German which I study at A level.

I know I caps it! I felt like doing it back! Also note the grun!

EDIT: Oh no!!!!!! No purple writing from sparks!!!!!!!!!!!!

Last edited by Sperry (2010-04-11 13:37:41)


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

Board footer