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

#1 2011-08-21 16:46:36

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

I need help already!

I need help with create a CYOB feature for my mod. Think you could give me the code?


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#2 2011-08-22 07:25:43

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: I need help already!

use the code from either BYOB or Panther. they are both hackable.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#3 2011-08-22 14:14:28

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

Re: I need help already!

hmmm. I don't have Panther on this computer yet BUT I might be able to generate some code for CYOB. Its really simple, really. I did it once, (i didn't steal from Panther or BYOB) but I forgot to save the image for the end user, and I never tried again.
I do know that CYOB works by having two arrays. One dialog box comes up and you type the blockspec. That answer is stored in an array. Another dialog box comes up and it asks you for the code. With that said, when the first array(with the blockspecs) is called, in the pallete the blockspec is

Code:

('the blockspec of the array' #typeOfBlockPredefinedInAnotherArray #theNumberOfPlacemantInBlockspecArray)

Ill explain it better.
1)  the text in the array gets put in the  ' ' s for the text in the array.
2) the kind of block is in another array (sorry,  forgot to tell you earlier) and put n the blockspec selector space
3) the broadcast to the code is the number in the array, sort of like the (number (1) of list ^) block for lists
Thats the blockspec. Now  for the code part.
When  the code is created, it goes into a fileinner (sortof like Scratch patches) that generates the code, making the block work.
I'll try to give you the coe for it all, but I have to figure out what the code is first. I can't remember. All that is just to give youu an idea on how it works.


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

 

Board footer