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

#1 2010-08-04 20:49:46

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

I need help with these things

alright i'm using the scratch 1.4 source code to make my own mod, there are a couple things i want to figure out how to do.

1. how can i make my own categories (like looks, motion, etc) btw i tried the tutorial in advanced topics but i think it's made for a previous version of the source code because it didn't work.
2. how can i change the green flag? i can change other things but it refuses to change.
and that's it, thanks!  i hope i can at least figure out a couple of these.

Last edited by PlayWithFire (2010-08-06 15:36:22)


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#2 2010-08-04 20:52:25

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: I need help with these things

Didn't I already tell you how to change the default sprite?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-08-04 20:58:58

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: I need help with these things

If you save the icon that you want as Scratch.icon, it should replace the cat head. I don't know anything about Modifications though.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#4 2010-08-04 21:15:57

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

it hasn't worked...


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#5 2010-08-04 21:53:21

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: I need help with these things

Ask on the Panther Development thread, those guys should know.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#6 2010-08-04 22:19:47

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

perhaps


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#7 2010-08-05 00:00:40

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: I need help with these things

Ace-of-Spades wrote:

Ask on the Panther Development thread, those guys should know.

Good idea!


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#8 2010-08-05 01:19:23

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: I need help with these things

Jwosty wrote:

Ace-of-Spades wrote:

Ask on the Panther Development thread, those guys should know.

Good idea!

Uh.. Thanks  big_smile


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#9 2010-08-05 02:11:51

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

you are an absolute genius, i wish i was as smart as you, and i'm not just saying that, in fact, i'm not saying anything, i'm typing. with my fingers.  using my keyboard.  on my computer. so yah.

what was i saying?

oh yah thanks for the advice seriously, i asked them and am awaiting a reply XD

Last edited by PlayWithFire (2010-08-05 02:12:48)


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#10 2010-08-06 02:34:38

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

bump
i still don't have ANY answers...


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#11 2010-08-06 03:28:29

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I need help with these things

i'll answer you all in a sec. hold on..
edit ok didn't want to be outposted  smile

original post wrote:

1. how can i change the default sprite from the random cat to something of my choice.
2. how can i make my own categories (like looks, motion, etc) btw i tried the tutorial in advanced topics but i think it's made for a previous version of the source code because it didn't work.
3. how can i change the layout of my mod.  i want to change the coloring and maybe change the green flag into a play button, any ideas on how i could accomplish that?
4. lastly do you know of any tutorials or can you tell me how to change the symbol for my scratch mod (from the scratch cat's head into my logo)

first of all take ALL the DLLs from your Scratch 1.4 folder and copy them to your mod's folder. now let's begin.

1 and 2 and 3
these three problems are all due to the scratch skin.
first, download the current one here.
then load it into the source code by typing the code below into a workspace (world - open - workspace), highlit it, right-click and click do it.

ScratchFrameMorph readSkinFrom: (FileDirectory default directoryNamed: 'ScratchSkin')

here you can add as many elements as you want and change the existing ones. always remember to load them into scratch though!

1. delete the 'defaultSprite' that you added (it's useless) and change in the skin the image called defaultSprite. load skin.

2. copy control, controlOver and controlPressed in the skin folder and rename them to yourcategory, yourcategoryOver etc. do this for all of your categories. load skin. now change those names in rebuildCategorySelectors and add whatever categories you need. it should work.

3. change in the skin the picture called flag, or greenFlag. (cant remember) load skin.
--
4. for this one you need another program called ResourceHacker (at least i found it's the simplest way). look it up on google. open the Scratch.exe or whatever you called it in resourcehacker, and change all the cat head icons to your mod's. save the result. done.

Last edited by LS97 (2010-08-06 03:40:48)

Offline

 

#12 2010-08-06 03:35:59

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

Lol awesome!  Thanks!


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#13 2010-08-06 03:40:58

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Offline

 

#14 2010-08-06 03:50:03

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

Thanks!

Wow that's awesome!  Um I feel bad for asking so much, but do you know how to add colors to the paint pallette or how to add fonts there, or bring back old fonts?


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#15 2010-08-06 04:15:36

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I need help with these things

you don't need to add colors, every single possible color in a 200@150 palette is there. i can add sizes, not fonts. the fonts there are simply the ones found in the operating system. add them to your OS if you want more  smile

Offline

 

#16 2010-08-06 13:45:55

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

aw that's too bad, i was really hoping to get some old fonts back.  i've already added some more sizes though  smile

as for colors, i know it technically has all of the colors, but i meant adding more to the default ones (meaning the colors in the squares)  which is probably not called a palette lol my bad  tongue

anyway thanks a million, you're a lifesaver!


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#17 2010-08-06 14:13:13

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I need help with these things

adding more 'default' colors would simply mean making the color square similar to the palette. the current colors are taken with precision from the palette. anyway, i wouldn't have any clue on how to add more. i'd have to explore the ScratchPaint more  smile

Offline

 

#18 2010-08-06 14:18:29

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

okay thanks anyway though!

um btw it's not changing the green flag, but with further investigation i found that the when green flag clicked block has changed to my play button

any ideas as to why it wouldn't be changing?


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#19 2010-08-06 15:19:05

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

i have not been able to
1. change the green flag
2. add categories (it still won't work for me)

i have been able to change the default sprite though (thanks!)
and i'm guessing that i can change the image to swipes image but i won't be doing that for a while so i'll know for sure later.


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#20 2010-08-06 18:04:21

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

i still can't seem to create a category, so my mod is now at a standstill because nothing works for me!  is there something wrong with my source code or something because i've done everything everyone has told me to do with no result.


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#21 2010-08-07 03:45:59

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I need help with these things

can't help you with the categories anymore, my instructions are perfect.
as for the green flag, it has six 'costumes' -
both normal and pressed, for blank, gray and black.
change all of them with their backgrounds respectively.

Offline

 

#22 2010-08-07 03:50:38

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

Yep, I did but it didn't work

I'm not sure what to do now  hmm


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#23 2010-08-08 16:57:51

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

here is my rebuildCategorySelectors code

Code:

rebuildCategorySelectors

    | catList maxExtent buttons label offForm onForm overForm b pad leftColumnX rightColumnX x y |
    catList _ #(
        motion        control
        looks        sensing
        sound        operators
        pen            variables
        online).

    "First, delete the old category buttons"
    submorphs do: [:m | (m isKindOf: ResizableToggleButton2) ifTrue: [m delete]].

    "Create new buttons, keeping track of the maximum extent."
    maxExtent _ 75@0.
    buttons _ catList collect: [:cat |
        label _ (ScratchTranslator translationFor: cat asString) capitalized.
        offForm _ (ScratchFrameMorph skinAt: cat).
        onForm _ (ScratchFrameMorph skinAt: (cat, 'Pressed')).
        overForm _ (ScratchFrameMorph skinAt: (cat, 'Over')).
        ScratchTranslator isRTL
            ifTrue:[
                b _ ResizableToggleButton2 new
                    offForm:    (offForm flipBy: #horizontal centerAt: offForm center)
                    onForm:        (onForm flipBy: #horizontal centerAt: onForm center)
                    overForm:    (overForm flipBy: #horizontal centerAt: overForm center)]
            ifFalse:[
                b _ ResizableToggleButton2 new
                    offForm:    offForm
                    onForm:        onForm
                    overForm:    overForm].
        b
            label: label font: (ScratchFrameMorph getFont: #Category);
            setLabelColor: Color white;
            target: self;
            actionSelector: #currentCategory:;
            arguments: (Array with: cat);
            toggleButtonMode: true;
            toggleMode: false.
        ScratchTranslator isRTL
            ifTrue:[b rightJustifyInset: 10]
            ifFalse:[b leftJustifyInset: 10].
        maxExtent _ maxExtent max: (b extent + (3 @ -6)).
        b].

    "calculate catButtonsExtent"
    pad _ 15. "padding on left, right, and betwen the button columns"
    catButtonsExtent _ ((2 * maxExtent x) + (3 * pad)) @ (((catList size // 2) * (maxExtent y + 6)) + 25).

    "place the buttons"
    leftColumnX _ self left + 12 + pad.
    rightColumnX _ leftColumnX + maxExtent x + pad.
    x _ leftColumnX.
    y _ self top + 17.
    1 to: buttons size do: [:i |
        b _ buttons at: i.
        b extent: maxExtent.
        self addMorph: (b position: x@y).
        i even
            ifTrue: [x _ leftColumnX. y _ y + b height + 6]
            ifFalse: [x _ rightColumnX]].

    self width: catButtonsExtent x.
    pageViewer position: self position + (0@catButtonsExtent y).
    topSectionHeight _ catButtonsExtent y - 4.

http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

#24 2010-08-08 19:38:53

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

Re: I need help with these things

I thought I said somewhere you can use (catList size / 2) rounded to fix the odd-number-of-categories glitch


nXIII

Offline

 

#25 2010-08-08 19:42:07

PlayWithFire
Scratcher
Registered: 2010-01-20
Posts: 1000+

Re: I need help with these things

just get rid of one / and it'll fix it?


http://scratch.mit.edu/static/projects/PlayWithFire/1610180_sm.png
Check out the DG Games Website For the latest news on games like Infected

Offline

 

Board footer