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

#1 2011-07-19 18:27:23

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

how do you add a block building feature to your mod?

^(title)


the the the the the

Offline

 

#2 2011-07-19 18:49:57

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: how do you add a block building feature to your mod?

also, how do you make a global variable for squeak?


the the the the the

Offline

 

#3 2011-07-20 15:56:25

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: how do you add a block building feature to your mod?

1) why don't you just take a mod(like hack-yob) and base it off of that? it would already have the block thing.
2) I don't know how to do it, but when I wanted a global variable, I made block codes that would write a text file and read it.


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#4 2011-07-20 16:21:06

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: how do you add a block building feature to your mod?

GP1 wrote:

1) why don't you just take a mod(like hack-yob) and base it off of that? it would already have the block thing.

I think that the interest here is in learning how to make that feature (not in terms of UI, but how one stores a custom block internally, how one views its code and how it its executed), not basing a mod in something that is already done, creating just another mod that does nothing besides having your own extra blocks ("Oh I created a mod that has X, Y, Z and some extra blocks!" - "How did you do it?" - "I took mod ABC and added extra blocks from the Block Library." Cool story bro). That's what you usually see around here. Mods based on other mods with a few extra blocks, nothing innovative, unfortunately.

For global variables, I recommend you take a look at section 5.7 from Squeak By Example: http://squeakbyexample.org/

Offline

 

#5 2011-07-20 16:31:07

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: how do you add a block building feature to your mod?

Yes, I agree, but I didn't know how to program very well when I made kitcat, so don't criticize it. 1.3 will be better. BTW, please go to the kitcat site and register so that I can make a chat page just for us developers


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#6 2011-07-20 16:38:46

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: how do you add a block building feature to your mod?

GP1 wrote:

Yes, I agree, but I didn't know how to program very well when I made kitcat, so don't criticize it. 1.3 will be better. BTW, please go to the kitcat site and register so that I can make a chat page just for us developers

done!

and also, all I want to do is have a dialog for the blockspec, a dialog for the code, and a dialog where you pick the category. anyone know how to do this?

Last edited by jslomba (2011-07-20 16:40:44)


the the the the the

Offline

 

#7 2011-07-20 17:08:00

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: how do you add a block building feature to your mod?

jslomba wrote:

GP1 wrote:

Yes, I agree, but I didn't know how to program very well when I made kitcat, so don't criticize it. 1.3 will be better. BTW, please go to the kitcat site and register so that I can make a chat page just for us developers

done!

and also, all I want to do is have a dialog for the blockspec, a dialog for the code, and a dialog where you pick the category. anyone know how to do this?

I can think of the first two. Just make a dialog morph for those two and store them in global variables. I don't know about the third one though. Could you go on the site and check your messages ( kitcat site )


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#8 2011-07-20 17:48:11

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: how do you add a block building feature to your mod?

GP1 wrote:

jslomba wrote:

GP1 wrote:

Yes, I agree, but I didn't know how to program very well when I made kitcat, so don't criticize it. 1.3 will be better. BTW, please go to the kitcat site and register so that I can make a chat page just for us developers

done!

and also, all I want to do is have a dialog for the blockspec, a dialog for the code, and a dialog where you pick the category. anyone know how to do this?

I can think of the first two. Just make a dialog morph for those two and store them in global variables. I don't know about the third one though. Could you go on the site and check your messages ( kitcat site )

it says the sig thing twice.


the the the the the

Offline

 

#9 2011-07-21 21:49:21

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: how do you add a block building feature to your mod?

Ask on the BYOB discussion thread, and they might tell you.

Offline

 

Board footer