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.
Offline
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
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
Offline
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)
Offline
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 )
Offline
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.
Offline
Ask on the BYOB discussion thread, and they might tell you.
Offline