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

#1 2012-08-18 16:41:18

angelica101
Scratcher
Registered: 2011-10-20
Posts: 1000+

I need help.

Can somebody give me a script of how to make it so the up and down arrow keys increase and decrease pen size?


Help with music please!|Nate, new OC! Bye 1.4... We'll miss you! http://fc02.deviantart.net/fs71/f/2012/298/4/4/44c5a8acdd0f4bf07c2c5b86371ccfd3-d5ivtt4.gif
http://i40.tinypic.com/24xf442.png

Offline

 

#2 2012-08-18 16:44:41

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I need help.

forever
if <key [some key v] pressed?>
change pen size by (up or down)
You should program more.  It really helps, even on animations.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-08-18 16:54:17

angelica101
Scratcher
Registered: 2011-10-20
Posts: 1000+

Re: I need help.

That script makes no sense at all. And I stink at animating and scripting, I'll obviously fail.


Help with music please!|Nate, new OC! Bye 1.4... We'll miss you! http://fc02.deviantart.net/fs71/f/2012/298/4/4/44c5a8acdd0f4bf07c2c5b86371ccfd3-d5ivtt4.gif
http://i40.tinypic.com/24xf442.png

Offline

 

#4 2012-08-18 16:57:31

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I need help.

Download this.  I made it in a few minutes when I got bored, so don't expect quality, except from the scripting.  And if you use any of my scripts, give credit please.   wink

Last edited by Firedrake969 (2012-08-18 16:57:55)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#5 2012-08-18 16:58:52

northmeister
Scratcher
Registered: 2011-07-12
Posts: 1000+

Re: I need help.

Firedrake969 wrote:

when gf clicked
forever
if <key [up arrow v] pressed?>
change pen size by (5)
end
if <key [down arrow v] pressed?>
change pen size by (-5)

I made it a bit more clearer  smile


http://i48.tinypic.com/5a25g5.png

Offline

 

#6 2012-08-18 17:03:49

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I need help.

northmeister wrote:

Firedrake969 wrote:

when gf clicked
set [pen size v] to (5)
forever
if <key [up arrow v] pressed?>
change pen size by (5)
change [pen size v] by (5)
if <key [down arrow v] pressed?>
change pen size by (-5)
change [pen size v] by (-5)
if <key [space v] pressed?>
change pen size by ((pen size) * (-1) + 1)
set [pen size v] to (1)

I made it a bit more clearer  smile

Yea, I was just too lazy to put it all.  I added variables to make it so that players can see the pen size.  And remember, credit!   wink
EDIT: [rant]OH MY GOD WHY WON'T THIS WORK I'M TRYING TO FIX IT BUT I CAN'T FIGURE OUT HOW TO TYPE IT!!!![/rant]

Last edited by Firedrake969 (2012-08-18 17:11:02)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#7 2012-08-18 17:07:08

Zangooser
Scratcher
Registered: 2012-03-18
Posts: 1000+

Re: I need help.

I don't think angelica will need to credit you. This is an extremely simple pen script. I'm 100% sure she would have figured it out on her own before long.  smile


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/O0efo.png&amp;link2=http://i.imgur.com/B1KzK.png

Offline

 

#8 2012-08-18 17:09:07

angelica101
Scratcher
Registered: 2011-10-20
Posts: 1000+

Re: I need help.

I just figured it out on my own  tongue  plus that script has obviously been used by other scratchers so I don't have to give any credit.


Help with music please!|Nate, new OC! Bye 1.4... We'll miss you! http://fc02.deviantart.net/fs71/f/2012/298/4/4/44c5a8acdd0f4bf07c2c5b86371ccfd3-d5ivtt4.gif
http://i40.tinypic.com/24xf442.png

Offline

 

#9 2012-08-18 17:09:07

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I need help.

Not the one I'm trying to fix in the post before yours....  wink   And not the variables.  I just thought of that....

Last edited by Firedrake969 (2012-08-18 17:09:35)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#10 2012-08-18 17:47:59

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: I need help.

Firedrake969 wrote:

northmeister wrote:

Firedrake969 wrote:

when gf clicked
set [pen size v] to (5)
forever
 if <key [up arrow v] pressed?>
  change pen size by (5)
  change [pen size v] by (5)
 end
 if <key [down arrow v] pressed?>
  change pen size by (-5)
  change [pen size v] by (-5)
 end
 if <key [space v] pressed?>
  change pen size by (((pen size) * (-1)) + (1))
  set [pen size v] to (1)
 end

I made it a bit more clearer  smile

Yea, I was just too lazy to put it all.  I added variables to make it so that players can see the pen size.  And remember, credit!   wink
EDIT: [rant]OH MY GOD WHY WON'T THIS WORK I'M TRYING TO FIX IT BUT I CAN'T FIGURE OUT HOW TO TYPE IT!!!![/rant]

Fixed.  big_smile


http://i46.tinypic.com/35ismmc.png

Offline

 

#11 2012-08-18 17:57:00

Whitefur
Scratcher
Registered: 2012-06-23
Posts: 83

Re: I need help.

I learned scripts on my own with a little help from my dad...they are pretty easy once you get the hang of it.  smile

 when gf clicked 
say [I don't script much, I'm mostly into animating and drawing. I'm working on a new game though.] for (5) secs 

Last edited by Whitefur (2012-08-18 17:58:18)


http://fc09.deviantart.net/fs70/f/2012/327/6/f/_freeze__by_whitefur_epic-d5lwg8j.png

Offline

 

#12 2012-08-18 17:57:38

angelica101
Scratcher
Registered: 2011-10-20
Posts: 1000+

Re: I need help.

Yeah... I'm not using variables  tongue


Help with music please!|Nate, new OC! Bye 1.4... We'll miss you! http://fc02.deviantart.net/fs71/f/2012/298/4/4/44c5a8acdd0f4bf07c2c5b86371ccfd3-d5ivtt4.gif
http://i40.tinypic.com/24xf442.png

Offline

 

#13 2012-08-18 17:58:56

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: I need help.

Whitefur wrote:

I learned scripts on my own with a little help from my dad...they are pretty easy once you get the hang of it.  smile

 when gf clicked
say [I don't script much, I'm mostly into animating and drawing. I'm working on a new game though.] for (5) secs 

Fixed.


http://i46.tinypic.com/35ismmc.png

Offline

 

#14 2012-08-18 18:01:12

Whitefur
Scratcher
Registered: 2012-06-23
Posts: 83

Re: I need help.

I already fixed it. :3


http://fc09.deviantart.net/fs70/f/2012/327/6/f/_freeze__by_whitefur_epic-d5lwg8j.png

Offline

 

#15 2012-08-18 18:08:06

Whitefur
Scratcher
Registered: 2012-06-23
Posts: 83

Re: I need help.

RAINBOWS
I'm bored.


http://fc09.deviantart.net/fs70/f/2012/327/6/f/_freeze__by_whitefur_epic-d5lwg8j.png

Offline

 

#16 2012-08-18 18:08:12

angelica101
Scratcher
Registered: 2011-10-20
Posts: 1000+

Re: I need help.

when gf clicked
forever
think [I'm a failure at anything I at least try to do.] for (1000000000) secs

Last edited by angelica101 (2012-08-18 18:08:43)


Help with music please!|Nate, new OC! Bye 1.4... We'll miss you! http://fc02.deviantart.net/fs71/f/2012/298/4/4/44c5a8acdd0f4bf07c2c5b86371ccfd3-d5ivtt4.gif
http://i40.tinypic.com/24xf442.png

Offline

 

#17 2012-08-18 18:15:37

Whitefur
Scratcher
Registered: 2012-06-23
Posts: 83

Re: I need help.

when gf clicked
say [don't think like that. If you are inspired and you practice, you can be amazing. Look at all the views you get. See how many people like your art?] for (20) secs 


http://fc09.deviantart.net/fs70/f/2012/327/6/f/_freeze__by_whitefur_epic-d5lwg8j.png

Offline

 

#18 2012-08-18 18:22:55

angelica101
Scratcher
Registered: 2011-10-20
Posts: 1000+

Re: I need help.

when gf clicked
forever
think [I shouldn't be on the front page.] (infinite) secs


Help with music please!|Nate, new OC! Bye 1.4... We'll miss you! http://fc02.deviantart.net/fs71/f/2012/298/4/4/44c5a8acdd0f4bf07c2c5b86371ccfd3-d5ivtt4.gif
http://i40.tinypic.com/24xf442.png

Offline

 

#19 2012-08-18 18:25:39

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: I need help.

angelica101 wrote:

when gf clicked
forever
think [I'm a failure at anything I at least try to do.] for (1000000000) secs

 
when gf clicked
forever
think [You are not a failure. For example, you made wonderful, flawless scratch blocks.] for (3.1415926535…) secs


http://i46.tinypic.com/35ismmc.png

Offline

 

#20 2012-08-18 18:36:32

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: I need help.

It looks like this poor forum thread has wandered from it's stated purpose into the vile land of spam - I will mercifully terminate it's tainted existence.  Please keep your subjects on-topic  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer