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

#1126 2010-04-13 06:02:30

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

Re: Panther development thread

I found a glitch!

The <Hosting mesh?> block will report true when you are hosting a mesh, but when your not, it says that Error! message thing.


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

Offline

 

#1127 2010-04-13 07:41:08

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

Re: Panther development thread

Sperry wrote:

I found a glitch!

The <Hosting mesh?> block will report true when you are hosting a mesh, but when your not, it says that Error! message thing.

Yes, i had that problem. I made a script which hosted a mesh, it would check to see if hosting mesh = false then hosted the mesh. But it would get the red halo of death and crash.


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

 

#1128 2010-04-13 07:43:43

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

Re: Panther development thread

nXIII, I think the ...other category for the sensor ___ block will work fine.

Oh man, we had the first thunderstorm here. And man, was it a STORM. We had a TON of hail, and I was up from 4.


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

Offline

 

#1129 2010-04-13 07:45:09

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

Re: Panther development thread

SeptimusHeap wrote:

nXIII, I think the ...other category for the sensor ___ block will work fine.

Oh man, we had the first thunderstorm here. And man, was it a STORM. We had a TON of hail, and I was up from 4.

Awww... are they regular where you are?


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

 

#1130 2010-04-13 07:47:41

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

Re: Panther development thread

markyparky56 wrote:

SeptimusHeap wrote:

nXIII, I think the ...other category for the sensor ___ block will work fine.

Oh man, we had the first thunderstorm here. And man, was it a STORM. We had a TON of hail, and I was up from 4.

Awww... are they regular where you are?

What do you mean?


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

Offline

 

#1131 2010-04-13 07:51:14

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

Re: Panther development thread

SeptimusHeap wrote:

markyparky56 wrote:

SeptimusHeap wrote:

nXIII, I think the ...other category for the sensor ___ block will work fine.

Oh man, we had the first thunderstorm here. And man, was it a STORM. We had a TON of hail, and I was up from 4.

Awww... are they regular where you are?

What do you mean?

Thunderstorms. Anyway, this is offtopic!
What are you working on right now?


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

 

#1132 2010-04-13 07:59:59

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

Re: Panther development thread

A calender that shows date, time, formal date, and, of course, a correct calender of the month.


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

Offline

 

#1133 2010-04-13 08:01:22

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

Re: Panther development thread

SeptimusHeap wrote:

A calender that shows date, time, formal date, and, of course, a correct calender of the month.

Interesting...


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

 

#1134 2010-04-13 08:05:21

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

Re: Panther development thread

I'm also working on a 'High score server', but I need a '...more' option under sensor ___.


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

Offline

 

#1135 2010-04-13 08:07:01

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

Re: Panther development thread

Hey Sep. Could you help me with my "round () to nearest () )" block please?
I don't know how to get it to modify the value passed in to round.

My instance code so far: It will very acuratelly get halfway piont of the nearest unit needed to round to:

Code:

round: t1 ToNearest: t2 
    t1 <= (t1 * (t2 / t1) - (t2 / 2) ) ifTrue: [^ ]

Last edited by Sperry (2010-04-13 08:08:05)


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

Offline

 

#1136 2010-04-13 08:15:50

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

Re: Panther development thread

Sperry wrote:

Hey Sep. Could you help me with my "round () to nearest () )" block please?

My instance code so far: It will very acuratelly get halfway piont of the nearest unit needed to round to:

Code:

round: t1 ToNearest: t2 
    t1 <= (t1 * (t2 / t1) - (t2 / 2) ) ifTrue: [^ ]

Find me the code for the round blockk


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

Offline

 

#1137 2010-04-13 08:21:18

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

Re: Panther development thread

Wait... It seems as if their is no code, just #round...


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

Offline

 

#1138 2010-04-13 08:26:41

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

Re: Panther development thread

Wait!!!!!

I got an idea!
Because #rounded: rounds to the nearsest 1, what if we divide the number by what they want it rounded to, then pass it into rounded, then multiply by what they want it rounded to again, and presto!

Do ya think it'll work?
I'll go test my methods!


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

Offline

 

#1139 2010-04-13 08:27:07

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

Re: Panther development thread

That's my idea. I just don't think it will work that way...


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

Offline

 

#1140 2010-04-13 08:33:06

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

Re: Panther development thread

It worked!!!!!!!!!!!!!!  big_smile   big_smile   big_smile   big_smile

blockSpec:

Code:

('round %n to nearest %n' #r #round:ToNearest:)

instance:

Code:

round: t1 ToNearest: t2 
    | t3 t4 t5 |
        t3 _ t1 / t2.
    t4 _ t3 rounded.
    t5 _ t4 * t2.
    ^ t5

Try it yourself!


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

Offline

 

#1141 2010-04-13 08:36:18

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

Re: Panther development thread

Hi five!

<^^^^)
|     |
|     |


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

Offline

 

#1142 2010-04-13 08:38:14

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

Re: Panther development thread

SeptimusHeap wrote:

Hi five!

<^^^^)
|     |
|     |

Yeah!!!
(^^^^><^^^^)
|     ||      |   SMACK!!
|     ||      |


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

Offline

 

#1143 2010-04-13 08:42:09

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

Re: Panther development thread

Estimate ___ to nearest ___.

blockSpec:

Code:

('estimate %n to %nths place' #r #est:ToNearest:)

instance:

Code:

est: t1 ToNearest: t2 
    | t3 t4 t5 |
        t3 _ t1 * t2.
    t4 _ t3 rounded.
    t5 _ t4 / t2.
    ^ t5

It works!


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

Offline

 

#1144 2010-04-13 08:43:45

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

Re: Panther development thread

markyparky56 wrote:

Uh... thats over complicating things...

explain?


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

Offline

 

#1145 2010-04-13 08:44:08

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

Re: Panther development thread

You stick in a reporter, like _ / _, and it estimates it!
W00t!
W00t!
W00t!


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

Offline

 

#1146 2010-04-13 08:46:12

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

Re: Panther development thread

SeptimusHeap wrote:

Estimate ___ to nearest ___.

blockSpec:

Code:

('estimate %n to %nths place' #r #est:ToNearest:)

instance:

Code:

est: t1 ToNearest: t2 
    | t3 t4 t5 |
        t3 _ t1 * t2.
    t4 _ t3 rounded.
    t5 _ t4 / t2.
    ^ t5

It works!

Ha lol,

Same functionality as my block AND same instance code (apart fro the title)!
You can do that with my block!

sparks your back! Do you like my new block?


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

Offline

 

#1147 2010-04-13 08:49:02

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

Re: Panther development thread

Sperry wrote:

SeptimusHeap wrote:

Estimate ___ to nearest ___.

blockSpec:

Code:

('estimate %n to %nths place' #r #est:ToNearest:)

instance:

Code:

est: t1 ToNearest: t2 
    | t3 t4 t5 |
        t3 _ t1 * t2.
    t4 _ t3 rounded.
    t5 _ t4 / t2.
    ^ t5

It works!

Ha lol,

Same functionality as my block AND same instance code [ERROR: fAiL] (apart fro the title)!
You can do that with my block!

sparks your back! Do you like my new block?

It rearranges * and /.


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

Offline

 

#1148 2010-04-13 08:51:13

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

Re: Panther development thread

Oh sorry, why anyway?


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

Offline

 

#1149 2010-04-13 08:53:03

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

Re: Panther development thread

hi, yes i'm back.... i had a panini ^_^ the block looks good... parky, why is that over cmplicating things?


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

Offline

 

#1150 2010-04-13 08:53:21

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

Re: Panther development thread

Sperry wrote:

Morning everyone! How are we getting on?

Oh my gosh!!! nXIII posted. Shame having school when everyone else is off. Oh well. Have fun at school today nXIII!

I still don't know how to get my block to work though. I thought about using some sring ops so I'm currently seeing what I can do with it. I'll get back to you on that one.

I think we're going to run out of block ideas and then we won't be able to release another version of Panther!!! Oh No!  sad

See you later guys

I'm not off.  sad


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

Offline

 

Board footer