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

#801 2010-04-11 12:15:33

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

Re: Panther development thread

markyparky56 wrote:

Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.  wink  )

Answer to 2: some of them fit im the %c (i'm guessing) and can be quite useful if the colour (or color) you want is not availiable for the colour (or color) picker.

EDIT:
@markyparky: Yup!  big_smile

Last edited by Sperry (2010-04-11 12:16:14)


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

Offline

 

#802 2010-04-11 12:15:38

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

Re: Panther development thread

Sperry wrote:

SeptimusHeap wrote:

Sperry wrote:


Is it something to do with the blocks I suggested earlier?

Yes. It SHOULD add all numbers in a list.

Then I'm going to divide it by the list length. DUHDUH! Average!

Can you run me through what it does? Then I'll understand it better and be able to help you.

@markyparky:
Yes, but there was also "average of items in list [list]"

OK, first is sets the t's, and it repeats this the length of the list (t2). It subtracts 1 from t2 so it doesn't repeat forever, and it adds the number in the list. Then it adds t4 (which number on the list you are at.)

Sorry it's confusing.


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

Offline

 

#803 2010-04-11 12:20:34

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

Re: Panther development thread

SeptimusHeap wrote:

Sperry wrote:

SeptimusHeap wrote:


Yes. It SHOULD add all numbers in a list.

Then I'm going to divide it by the list length. DUHDUH! Average!

Can you run me through what it does? Then I'll understand it better and be able to help you.

@markyparky:
Yes, but there was also "average of items in list [list]"

OK, first is sets the t's, and it repeats this the length of the list (t2). It subtracts 1 from t2 so it doesn't repeat forever, and it adds the number in the list. Then it adds t4 (which number on the list you are at.)

Sorry it's confusing.

Err......right. *puts thinking cap on*

Q: Whats t3 for?

I am really confused right now!!!!!!


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

Offline

 

#804 2010-04-11 12:23:56

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

Re: Panther development thread

Sperry wrote:

SeptimusHeap wrote:

Sperry wrote:


Can you run me through what it does? Then I'll understand it better and be able to help you.

@markyparky:
Yes, but there was also "average of items in list [list]"

OK, first is sets the t's, and it repeats this the length of the list (t2). It subtracts 1 from t2 so it doesn't repeat forever, and it adds the number in the list. Then it adds t4 (which number on the list you are at.)

Sorry it's confusing.

Err......right. *puts thinking cap on*

Q: Whats t3 for?

I am really confused right now!!!!!!

t3 holds the added up numbers, t4 the number on the list you are on, like 1, 2, etc.
t2 is the length of the list.


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

Offline

 

#805 2010-04-11 12:29:46

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

Re: Panther development thread

Can't see anything wrong with the code> BUT!!!!!

whats in your blockspecs? could it be this?:

listaverage: t1

SHOULD BE:

listAverage: t1


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

Offline

 

#806 2010-04-11 12:29:47

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

Re: Panther development thread

Sperry wrote:

markyparky56 wrote:

Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.  wink  )

Answer to 2: some of them fit im the %c (i'm guessing) and can be quite useful if the colour (or color) you want is not availiable for the colour (or color) picker.

EDIT:
@markyparky: Yup!  big_smile

yay! another UK person who spells colour colour not color or farbe!


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

Offline

 

#807 2010-04-11 12:30:38

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

Re: Panther development thread

SeptimusHeap wrote:

SeptimusHeap wrote:

I get this error from whiletrue.

Code:

    (t2 >= 0) whileTrue: [^t2 _ t2 - 1 <- receiver of whileTrue: must be a block or variable ->].

Help nXIII!

Sorry, my mistake; it should be:

[t2 >= 0] whileTrue: []

but you do realize that the ^ returns a value and ends the code, right? You can't loop with it >.>


nXIII

Offline

 

#808 2010-04-11 12:31:59

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

Re: Panther development thread

sparks wrote:

Sperry wrote:

markyparky56 wrote:

Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.  wink  )

Answer to 2: some of them fit im the %c (i'm guessing) and can be quite useful if the colour (or color) you want is not availiable for the colour (or color) picker.

EDIT:
@markyparky: Yup!  big_smile

yay! another UK person who spells colour colour not color or farbe!

Lol! I'm British!!!  big_smile


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

Offline

 

#809 2010-04-11 12:32:53

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

Re: Panther development thread

Sperry wrote:

Can't see anything wrong with the code> BUT!!!!!

whats in your blockspecs? could it be this?:

listaverage: t1

SHOULD BE:

listAverage: t1

When I try to save the file, it comes up with an error. I havent even TRIED the block.

The error says argument expected\ before the LineAt part.

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


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

Offline

 

#810 2010-04-11 12:34:20

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

Re: Panther development thread

SeptimusHeap wrote:

Sperry wrote:

Can't see anything wrong with the code> BUT!!!!!

whats in your blockspecs? could it be this?:

listaverage: t1

SHOULD BE:

listAverage: t1

When I try to save the file, it comes up with an error. I havent even TRIED the block.

Oh.........................  sad

What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII said


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

Offline

 

#811 2010-04-11 12:34:37

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

Re: Panther development thread

Sperry wrote:

Lol! I'm British!!!  big_smile

... I have taken a sudden and completely unrelated liking to you... yeah... unrelated...  big_smile  naw, I thought you were awesome before I knew you were british... Now if a Swiss person started commenting, THAT would be awesome!  tongue


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

Offline

 

#812 2010-04-11 12:34:49

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

Re: Panther development thread

markyparky56 wrote:

Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.  wink  )

Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'

sparks wrote:

NXIIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXII er, you know that's not password protected, right?NXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXII

What are you talking about?

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


nXIII

Offline

 

#813 2010-04-11 12:36:11

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

Re: Panther development thread

nXIII wrote:

markyparky56 wrote:

Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.  wink  )

Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'

but..but... I can't even get the new version to show! it's still the old one :'(


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

Offline

 

#814 2010-04-11 12:37:05

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

Re: Panther development thread

sparks wrote:

Sperry wrote:

Lol! I'm British!!!  big_smile

... I have taken a sudden and completely unrelated liking to you... yeah... unrelated...  big_smile  naw, I thought you were awesome before I knew you were british... Now if a Swiss person started commenting, THAT would be awesome!  tongue

Thanks! That means alot.

nXIII wrote:

Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'

Yeah, I said that


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

Offline

 

#815 2010-04-11 12:37:09

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

Re: Panther development thread

sparks wrote:

nXIII wrote:

markyparky56 wrote:

Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.  wink  )

Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'

but..but... I can't even get the new version to show! it's still the old one :'(

I really don't know why that happens...


nXIII

Offline

 

#816 2010-04-11 12:37:13

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

Re: Panther development thread

Sperry wrote:

SeptimusHeap wrote:

Sperry wrote:

Can't see anything wrong with the code> BUT!!!!!

whats in your blockspecs? could it be this?:

listaverage: t1

SHOULD BE:

listAverage: t1

When I try to save the file, it comes up with an error. I havent even TRIED the block.

Oh.........................  sad

What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII said

I didn't use ^ at all.

The error line:

whileTrue: [t2 _ t2 - 1. t3 _ t3 +  Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]


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

Offline

 

#817 2010-04-11 12:38:13

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

Re: Panther development thread

N    X    I    I    I    Have You Gotten My Blocks Yet!?!?!?!?!?!

Sorry.


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

Offline

 

#818 2010-04-11 12:41:21

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

Re: Panther development thread

May I ask NXIII how you changed MISC to colour?


You can now reach me on Twitter @johnnydean1_

Offline

 

#819 2010-04-11 12:41:33

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

Re: Panther development thread

SeptimusHeap wrote:

Sperry wrote:

SeptimusHeap wrote:


When I try to save the file, it comes up with an error. I havent even TRIED the block.

Oh.........................  sad

What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII said

I didn't use ^ at all.

The error line:

whileTrue: [t2 _ t2 - 1. t3 _ t3 +  Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]

Ah ha.

Its. complicated to explain but, try this:

t5 _ lineAt: (self lineNum: t4 forList: t3)
whileTrue: [t2 _ t2 - 1. t3 _ t3 +  t5. t4 _ t4 + 1.]

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


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

Offline

 

#820 2010-04-11 12:43:02

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

Re: Panther development thread

Your fav colour is blue?


You can now reach me on Twitter @johnnydean1_

Offline

 

#821 2010-04-11 12:43:10

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

Re: Panther development thread

Sperry wrote:

SeptimusHeap wrote:

Sperry wrote:


Oh.........................  sad

What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII said

I didn't use ^ at all.

The error line:

whileTrue: [t2 _ t2 - 1. t3 _ t3 +  Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]

Ah ha.

Its. complicated to explain but, try this:

t5 _ lineAt: (self lineNum: t4 forList: t3)
whileTrue: [t2 _ t2 - 1. t3 _ t3 +  t5. t4 _ t4 + 1.]

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

But then t5 would need to be constantly changed, because t4 constantly changes.


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

Offline

 

#822 2010-04-11 12:44:40

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

Re: Panther development thread

SeptimusHeap wrote:

Sperry wrote:

SeptimusHeap wrote:


I didn't use ^ at all.

The error line:

whileTrue: [t2 _ t2 - 1. t3 _ t3 +  Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]

Ah ha.

Its. complicated to explain but, try this:

t5 _ lineAt: (self lineNum: t4 forList: t3)
whileTrue: [t2 _ t2 - 1. t3 _ t3 +  t5. t4 _ t4 + 1.]

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

But then t5 would need to be constantly changed, because t4 constantly changes.

Then how about:

whileTrue: [t2 _ t2 - 1. t5 _ lineAt: (self lineNum: t4 forList: t3). t3 _ t3 +  t5. t4 _ t4 + 1.]


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

Offline

 

#823 2010-04-11 12:45:15

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

Re: Panther development thread

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...


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

Offline

 

#824 2010-04-11 12:45:30

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

Re: Panther development thread

SeptimusHeap wrote:

Sperry wrote:

SeptimusHeap wrote:


When I try to save the file, it comes up with an error. I havent even TRIED the block.

Oh.........................  sad

What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII said

I didn't use ^ at all.

The error line:

whileTrue: [t2 _ t2 - 1. t3 _ t3 +  Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]

You need something like

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


nXIII

Offline

 

#825 2010-04-11 12:46:30

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

Re: Panther development thread

Now it does:

whileTrue: [t2 _ t2 - 1. t5 _ expression expected -> lineAt: (self lineNum: t4 forList: t3). t3 _ t3 +  t5. t4 _ t4 + 1.]


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

Offline

 

Board footer