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

#1076 2010-04-12 14:42:18

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

Re: Panther development thread

Either that means that we've been very productive, or that we've been chatting too much.

I think it's because it was the weekend and everyone was typing for a lot of the day.

p.s. does firefox have a keyboard shotcut for refresh? f5 does not work and I have a pen tablet, so I'm fed up with picking up the pen leaning over and tapping the refresh button  sad


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

Offline

 

#1077 2010-04-12 14:43:41

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

Re: Panther development thread

contrastingly, this is the least I've heard from nXIII in ages... he must have a mountian of homework.


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

Offline

 

#1078 2010-04-12 14:46:47

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

Re: Panther development thread

sparks wrote:

contrastingly, this is the least I've heard from nXIII in ages... he must have a mountian of homework.

Either that or hes gone on a family day out  smile


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

Offline

 

#1079 2010-04-12 14:50:33

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

Re: Panther development thread

t1 >= ((t1 * (t2 / t1)) + (t2 / 2) )

Would this work for finding out if the number rounded is bigger than the halfway point of the value to be rounded to?

Last edited by Sperry (2010-04-12 14:50:52)


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

Offline

 

#1080 2010-04-12 14:58:08

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

Re: Panther development thread

sparks wrote:

Either that means that we've been very productive, or that we've been chatting too much.

I think it's because it was the weekend and everyone was typing for a lot of the day.

p.s. does firefox have a keyboard shotcut for refresh? f5 does not work and I have a pen tablet, so I'm fed up with picking up the pen leaning over and tapping the refresh button  sad

Crt + R for refresh.


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

 

#1081 2010-04-12 15:05:02

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

Re: Panther development thread

Sperry wrote:

t1 >= ((t1 * (t2 / t1)) + (t2 / 2) )

Would this work for finding out if the number rounded is bigger than the halfway point of the value to be rounded to?

make it using scratch blocks with slider watchers to change the varaibles around and see what happens?


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

Offline

 

#1082 2010-04-12 15:06:10

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

Re: Panther development thread

markyparky56 wrote:

sparks wrote:

Either that means that we've been very productive, or that we've been chatting too much.

I think it's because it was the weekend and everyone was typing for a lot of the day.

p.s. does firefox have a keyboard shotcut for refresh? f5 does not work and I have a pen tablet, so I'm fed up with picking up the pen leaning over and tapping the refresh button  sad

Crt + R for refresh.

thanks  smile


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

Offline

 

#1083 2010-04-12 15:08:25

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

Re: Panther development thread

sparks wrote:

markyparky56 wrote:

sparks wrote:

Either that means that we've been very productive, or that we've been chatting too much.

I think it's because it was the weekend and everyone was typing for a lot of the day.

p.s. does firefox have a keyboard shotcut for refresh? f5 does not work and I have a pen tablet, so I'm fed up with picking up the pen leaning over and tapping the refresh button  sad

Crt + R for refresh.

thanks  smile

Are you just sitting in this thread?


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

 

#1084 2010-04-12 15:12:22

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

Re: Panther development thread

er, if that means sitting at the PC and waiting for another comment then no. I am sitting at the PC and waiting for another comment whilst simulatiosly alternating between playing guitar and reading "host" by Stephanie Meyer and testing Panther for glitches. If not, I don't know what you mean


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

Offline

 

#1085 2010-04-12 15:13:09

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

Re: Panther development thread

Right - that worked (the calculation) thanks sparks!

round: t1 ToRearest: t2
    t1 <= (t1 * (t2 / t1) + (t2 / 2) ) ifTrue: [^]
Now ho do I get it to return the value rounded DOWN?

Last edited by Sperry (2010-04-12 15:13:38)


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

Offline

 

#1086 2010-04-12 15:15:31

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

Re: Panther development thread

Sperry wrote:

Right - that worked (the calculation) thanks sparks!

round: t1 ToR?earest: t2
    t1 <= (t1 * (t2 / t1) + (t2 / 2) ) ifTrue: [^]
Now ho do I get it to return the value rounded DOWN?

I didn't do anything... but you're welcome ^_^

Last edited by sparks (2010-04-12 15:15:44)


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

Offline

 

#1087 2010-04-12 15:17:48

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

Re: Panther development thread

sparks wrote:

Sperry wrote:

Right - that worked (the calculation) thanks sparks!

round: t1 ToR?earest: t2
    t1 <= (t1 * (t2 / t1) + (t2 / 2) ) ifTrue: [^]
Now ho do I get it to return the value rounded DOWN?

I didn't do anything... but you're welcome ^_^

Rearest?


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

 

#1088 2010-04-12 15:19:13

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

Re: Panther development thread

markyparky56 wrote:

sparks wrote:

Sperry wrote:

Right - that worked (the calculation) thanks sparks!

round: t1 ToR?earest: t2
    t1 <= (t1 * (t2 / t1) + (t2 / 2) ) ifTrue: [^]
Now ho do I get it to return the value rounded DOWN?

I didn't do anything... but you're welcome ^_^

Rearest?

Fine, I made a typo. But can anybody help me? I'm stuck!


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

Offline

 

#1089 2010-04-12 15:23:38

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

Re: Panther development thread

well this is an "out there" random guess, but what would happen if you had one procedure that determined wether it needed rounding up or down, and then routed it to either your equation of one that began t1 >= rather than t1 <= ?

it's only a guess...


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

Offline

 

#1090 2010-04-12 15:25:56

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

Re: Panther development thread

sparks wrote:

well this is an "out there" random guess, but what would happen if you had one procedure that determined wether it needed rounding up or down, and then routed it to either your equation of one that began t1 >= rather than t1 <= ?

it's only a guess...

No, no , no. That calculation was for rounding down. I was asking how to get the last character to a 0 and not to what it was.

Anyway: If that calculation is true - it will return a value. if its false - it will carry on and  skip the return

Last edited by Sperry (2010-04-12 15:26:32)


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

Offline

 

#1091 2010-04-12 15:27:28

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

Re: Panther development thread

well as I said, a guess.

no idea then


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

Offline

 

#1092 2010-04-12 15:27:29

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

Re: Panther development thread

sparks wrote:

well this is an "out there" random guess, but what would happen if you had one procedure that determined wether it needed rounding up or down, and then routed it to either your equation of one that began t1 >= rather than t1 <= ?

it's only a guess...

That should work...

Oh yeah, I forgot, you know how i was talking around Laisse fare, i was actualy spelling it wrong and its actualy Laisse Faire, http://encyclopedia.thefreedictionary.com/Laisse+faire

Last edited by markyparky56 (2010-04-12 15:28:23)


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

 

#1093 2010-04-12 16:02:19

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

Re: Panther development thread

Hey! About the MiniFeed,  it just feeds the RSS feed.


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

Offline

 

#1094 2010-04-12 16:03:50

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

Re: Panther development thread

SeptimusHeap wrote:

Hey! About the MiniFeed,  it just feeds the RSS feed.

I like it.


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

 

#1095 2010-04-12 16:13:02

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

Re: Panther development thread

I got 4 new blocks: average of _ and _ and _ ; average of _ and _; distance between _ and _; and get variable ___ from mesh.

blockSpecs for average of _ and _ and _:

Code:

('average of %n and %n and %n' #r #average:and:and: 1 3 5)

Code for average:and:and: (In scratchmorph, other ops)

Code:

average: t1 and: t2 and: t3
|t4|
t4 _ t1 + t2 + t3 / 3.
^t4

blockSpecs for average of _ and _:

Code:

('average of %n and %n' #r #average:and: 1 3)

Code for average:and: (In scratchmorph, other ops)

Code:

average: t1 and: t2
|t3|
t3 _ t1 + t2 / 2.
^t3

blockSpecs for distance between _ and _:

Code:

('distance between %n and %n' #r #difference:and: 1 10)

Code for difference:and: (In scratchmorph, other ops)

Code:

difference: t1 and: t2
|t3|
t1 < t2 ifTrue: [t3 _ t2 - t1].
t2 < t1 ifTrue: [t3 _ t1 - t2].
t2 = t1 ifTrue: [t3 _ 0].
^t3

blockSpecs for get variable ___ from mesh:

Code:

 ('get variable %s from mesh' #r #sensor: 'variable')

Function sensor: is already built in.


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

Offline

 

#1096 2010-04-12 16:20:46

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

Re: Panther development thread

SeptimusHeap wrote:

I got 4 new blocks: average of _ and _ and _ ; average of _ and _; distance between _ and _; and get variable ___ from mesh.

blockSpecs for average of _ and _ and _:

Code:

('average of %n and %n and %n' #r #average:and:and: 1 3 5)

Code for average:and:and: (In scratchmorph, other ops)

Code:

average: t1 and: t2 and: t3
|t4|
t4 _ t1 + t2 + t3 / 3.
^t4

blockSpecs for average of _ and _:

Code:

('average of %n and %n' #r #average:and: 1 3)

Code for average:and: (In scratchmorph, other ops)

Code:

average: t1 and: t2
|t3|
t3 _ t1 + t2 / 2.
^t3

blockSpecs for distance between _ and _:

Code:

('distance between %n and %n' #r #difference:and: 1 10)

Code for difference:and: (In scratchmorph, other ops)

Code:

difference: t1 and: t2
|t3|
t1 < t2 ifTrue: [t3 _ t2 - t1].
t2 < t1 ifTrue: [t3 _ t1 - t2].
t2 = t1 ifTrue: [t3 _ 0].
^t3

blockSpecs for get variable ___ from mesh:

Code:

 ('get variable %s from mesh' #r #sensor: 'variable')

Function sensor: is already built in.

No we have to wait for NxIII to appear and here can catch up on the last 5 pages or so...

(He is online right now)

Last edited by markyparky56 (2010-04-12 16:23:01)


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

 

#1097 2010-04-12 16:27:00

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

Re: Panther development thread

markyparky56 wrote:

SeptimusHeap wrote:

I got 4 new blocks: average of _ and _ and _ ; average of _ and _; distance between _ and _; and get variable ___ from mesh.

blockSpecs for average of _ and _ and _:

Code:

('average of %n and %n and %n' #r #average:and:and: 1 3 5)

Code for average:and:and: (In scratchmorph, other ops)

Code:

average: t1 and: t2 and: t3
|t4|
t4 _ t1 + t2 + t3 / 3.
^t4

blockSpecs for average of _ and _:

Code:

('average of %n and %n' #r #average:and: 1 3)

Code for average:and: (In scratchmorph, other ops)

Code:

average: t1 and: t2
|t3|
t3 _ t1 + t2 / 2.
^t3

blockSpecs for distance between _ and _:

Code:

('distance between %n and %n' #r #difference:and: 1 10)

Code for difference:and: (In scratchmorph, other ops)

Code:

difference: t1 and: t2
|t3|
t1 < t2 ifTrue: [t3 _ t2 - t1].
t2 < t1 ifTrue: [t3 _ t1 - t2].
t2 = t1 ifTrue: [t3 _ 0].
^t3

blockSpecs for get variable ___ from mesh:

Code:

 ('get variable %s from mesh' #r #sensor: 'variable')

Function sensor: is already built in.

No we have to wait for NxIII to appear and here can catch up on the last 5 pages or so...

(He is online right now)

Uh, no he's not...


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

Offline

 

#1098 2010-04-12 16:33:12

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

Re: Panther development thread

Hmm... The get variable block doesn't seem to work. It can't get the value.


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

Offline

 

#1099 2010-04-12 16:34:43

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

Re: Panther development thread

MathWizz wrote:

Uh, no he's not...

Well he was.

SeptimusHeap wrote:

Hmm... The get variable block doesn't seem to work. It can't get the value.

Is there an actual variable to get?


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

 

#1100 2010-04-12 16:38:34

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

Re: Panther development thread

markyparky56 wrote:

MathWizz wrote:

Uh, no he's not...

Well he was.

SeptimusHeap wrote:

Hmm... The get variable block doesn't seem to work. It can't get the value.

Is there an actual variable to get?

Yeah. I don't get it. I bet it can't read a string.


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

Offline

 

Board footer