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

#26 2010-08-08 19:55:22

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

Re: I need help with these things

okay i don't think that that is what the problem is

the thing is i can't seem to update scratch once the changes are made, i've literally deleted all of the category names then hit accept and seen no change to scratch at all.


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

 

#27 2010-08-09 05:02:29

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

Re: I need help with these things

nXIII wrote:

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

you said it in my thread i believe.

Offline

 

#28 2010-08-09 05:03:33

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

Re: I need help with these things

PlayWithFire wrote:

okay i don't think that that is what the problem is

the thing is i can't seem to update scratch once the changes are made, i've literally deleted all of the category names then hit accept and seen no change to scratch at all.

you have to save image and restart it. it's normal that you've see no change because the script is only run at startup  smile

Offline

 

#29 2010-08-09 12:30:35

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

Re: I need help with these things

okay two things

here's my edited script to make sure it's 100%

Code:

| 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.

and lastly to restart do I only have to save and quit then re open it or is there a specific way to restart?

thanks for being so helpful!


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

 

#30 2010-08-09 21:56:13

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

Re: I need help with these things

wow i'm having so many issues with the skin
every time i change a piece of the skin it will not change, instead it either stays the same or doesn't show at all

i still can't add categories and i have no idea what i'm doing wrong

i can't add things to the menu either (where it says file, edit, help)  even though i've done everything that needs to be done (from what i know)

why is this so difficult!  i've followed instructions perfectly for categories and it refuses to change, i was told to press alt + d when done but all it does it say that all of these things that are predetermined ddo not exist and should be temporary variables

what's going on!


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

 

#31 2010-08-09 23:05:03

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

Re: I need help with these things

and i made the swipe default pic look really cool!   big_smile

and i just now managed to make the new buttons at the top appear (but still not the categories)  i had to put the project into regular size screen mode then back to small screen mode for some reason.


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

 

#32 2010-08-10 03:04:27

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

Re: I need help with these things

you did load the skin, didn't you?

Offline

 

#33 2010-08-10 13:03:27

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

Re: I need help with these things

Yep, like 80 times,

I will not give up :p


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

 

#34 2010-08-14 12:17:27

wordMan
Scratcher
Registered: 2007-12-02
Posts: 82

Re: I need help with these things

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.

no, just copy the .exe/.app file, and change its icon.


http://www.danasoft.com/sig/1024tim.jpg

Offline

 

Board footer