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

#3276 2010-07-02 16:08:29

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

Re: Panther development thread

cruelty247 wrote:

how can i make it so my variable fits in a _______ as string? panther block
block creater thing?

the $Color$ as string block turns a colour in the pallet into a hexadecimal code.

orange varaibles do not fit in it, but colour variables do.


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

Offline

 

#3277 2010-07-02 16:19:24

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: Panther development thread

ok i realize now what i want is a block that can turn 1-10 numbers into 1-10 a-f numbers!

Offline

 

#3278 2010-07-02 17:04:51

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

Re: Panther development thread

cruelty247 wrote:

ok i realize now what i want is a block that can turn 1-10 numbers into 1-10 a-f numbers!

you can probably build a converter out of existing blocks.


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

Offline

 

#3279 2010-07-02 17:05:37

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

Re: Panther development thread

true  smile


You can now reach me on Twitter @johnnydean1_

Offline

 

#3280 2010-07-02 17:26:41

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

Re: Panther development thread

johnnydean1 wrote:

true  smile

You really like making small posts...


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

 

#3281 2010-07-02 19:02:44

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

Re: Panther development thread

cruelty247 wrote:

ok i realize now what i want is a block that can turn 1-10 numbers into 1-10 a-f numbers!

http://cs.berkeley.edu/~bh/hex.gif


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

Offline

 

#3282 2010-07-04 05:16:48

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

Re: Panther development thread

hey guys, just wanted to say, Panther has just reached 500 downloads! thank you all for your amazing support!


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

Offline

 

#3283 2010-07-04 10:18:26

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

Re: Panther development thread

sparks wrote:

Gib mir auge wo chond louege, it wet jo meh als numme ksee, gib mir ohre wo chond losse, wenn mer losst den kört mer meh.

What does that mean in english?


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

 

#3284 2010-07-04 10:56:44

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

Re: Panther development thread

Its a challange to find out...

And short posts are fast!


You can now reach me on Twitter @johnnydean1_

Offline

 

#3285 2010-07-04 11:01:25

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

Re: Panther development thread

paulpsicle wrote:

sparks wrote:

Gib mir auge wo chond louege, it wet jo meh als numme ksee, gib mir ohre wo chond losse, wenn mer losst den kört mer meh.

What does that mean in english?

It's a song lyric.

♪Give me eyes with which to see things,
I want more than just to see.
Give me ears with which to hear things,
when you listen you hear more.♫

(it rhymes in swiss)


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

Offline

 

#3286 2010-07-04 11:24:11

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

Re: Panther development thread

ok weird rhyme...


You can now reach me on Twitter @johnnydean1_

Offline

 

#3287 2010-07-04 11:26:38

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

Re: Panther development thread

I need a help. I need to make a game using tiles. Which would be the most efficant way of doing it. E.G a varibale for each square.

It needs to be at least 25x25


You can now reach me on Twitter @johnnydean1_

Offline

 

#3288 2010-07-04 11:37:32

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

Re: Panther development thread

johnnydean1 wrote:

I need a help. I need to make a game using tiles. Which would be the most efficant way of doing it. E.G a varibale for each square.

It needs to be at least 25x25

Maybe a list?


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

 

#3289 2010-07-04 12:11:34

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

Re: Panther development thread

markyparky56 wrote:

johnnydean1 wrote:

It needs to be at least 25x25

Maybe a list?

What you want is a list of lists!   big_smile   But you can fake it by making a list of length 625 and looking at item number (25X)+Y+1 if you count squares from zero,
or (25(X-1) )+Y if you count squares from one.

(EDIT: Stupid Scratch blocks thingy; I thought you had to ask for that with [ b l o c k s ]!  sad

Last edited by bharvey (2010-07-04 12:12:44)


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

Offline

 

#3290 2010-07-04 12:50:57

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

Re: Panther development thread

bharvey wrote:

markyparky56 wrote:

johnnydean1 wrote:

It needs to be at least 25x25

Maybe a list?

What you want is a list of lists!  :D  But you can fake it by making a list of length 625 and looking at item number (25X)+Y+1 if you count squares from zero,
or (25(X-1) )+Y if you count squares from one.

(EDIT: Stupid Scratch blocks thingy; I thought you had to ask for that with [ b l o c k s ]! :(

Check off "never show smileys as icons for this post". Ex:

(((((((((((((())))))))))))))
{foo}

EDIT: But then the smileys in quoted text will go away...

Last edited by nXIII (2010-07-04 12:51:40)


nXIII

Offline

 

#3291 2010-07-04 13:07:14

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

Re: Panther development thread

I just made a <File $String$ exists?> block  smile

Code:
|contents exists other writing temp var|
writing_ 'I exist'.

contents_ self readFile: (t1).
self writeText: (writing) toFile: (t1).
other_ self readFile: (t1).

temp_ self stringLength: (writing).
var_ self stringLength: (other).
temp_ var - temp.
temp_ temp + 1.
temp_ self letters: (temp) through: (var) of: (other).

temp = writing
ifTrue: [
exists_ true.
self clearFile: (t1).
self writeText: (contents) toFile: (t1). 
]
ifFalse: [
exists_ false.
].
^ exists

Last edited by johnnydean1 (2010-07-04 14:43:43)


You can now reach me on Twitter @johnnydean1_

Offline

 

#3292 2010-07-04 13:41:24

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: Panther development thread

NEVER use a block that accesses a forum web page. This will make the views skyrocket. At the time this was posted, my forum topic was at the top of the advanced topics section with '14208 views' because of my project that notified me when there was a new post.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#3293 2010-07-04 13:48:45

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

Re: Panther development thread

lol


You can now reach me on Twitter @johnnydean1_

Offline

 

#3294 2010-07-04 13:56:20

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

Re: Panther development thread

I have a idea. On CYOB you can insert blocks into the editor. Why not make it able to instert custom blocks?


You can now reach me on Twitter @johnnydean1_

Offline

 

#3295 2010-07-04 14:04:27

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

Re: Panther development thread

Can any1 do a make file $String$ block?


You can now reach me on Twitter @johnnydean1_

Offline

 

#3296 2010-07-04 16:24:21

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

Re: Panther development thread

use clear file $String$
or, if you really want, self clearFile: (t1)

Last edited by paulpsicle (2010-07-04 16:45:11)


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

Offline

 

#3297 2010-07-04 16:41:50

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

Re: Panther development thread

johnnydean1 wrote:

I just made a <File $String$ exists?> block  smile

I made a simpler one:

Code:

| t2 t3 |
t2 _  self numFileLines: (t1).
t3 _ t2 asString.
(t3 = '') ifTrue:[^ false].
^true

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

Offline

 

#3298 2010-07-04 17:18:16

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

Re: Panther development thread

good! be submitting these to blockshop peoples!


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

Offline

 

#3299 2010-07-04 20:23:03

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

Re: Panther development thread

Ugh... I never should have included the "add a block" menu in CYOB.


nXIII

Offline

 

#3300 2010-07-05 08:13:13

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

Re: Panther development thread

nXIII wrote:

Ugh... I never should have included the "add a block" menu in CYOB.

maybe take it out of the next version? it's a bit of an odd feature  tongue


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

Offline

 

Board footer