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

#1 2013-04-23 18:58:23

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Script shop!

if you need help with any scripts get 'em here! Also if you are new to scratch you can post what project you need to make and i can show you the scripting. But please be specific and make sure you use good grammer so i can understand you.  big_smile


http://i39.tinypic.com/3309476.jpg

Offline

 

#2 2013-04-24 23:07:54

Mikestar
New Scratcher
Registered: 2013-04-04
Posts: 13

Re: Script shop!

can you help me with a timer script? here is my current script. Please reply on the topic under help with scripts called "help with timer script"
here is my script

when gf clicked
switch to costume [costume 1 v]
set [question counter v] to (0)
set [incorrect answers v] to (0)
set [correct answers v] to (0)
set [did not answer v] to (0)
set [next costume v] to (0)
repeat (length of [answers v])
reset timer
ask item (question counter) of [answers v]
if timer <(timer) > [3.5]>
change [incorrect answers v] by [1]
else
if <(answer) = <[item [question counter v] of [answers v]
change [correct answers v] by [1]
else
change [incorrect answers v] by [1]
end
end
change [question counter v] by [1]
change [next costume] by [1]
brodcast [next costume]

Offline

 

#3 2013-04-25 07:54:34

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: Script shop!

Mikestar wrote:

can you help me with a timer script? here is my current script. Please reply on the topic under help with scripts called "help with timer script"
here is my script

when gf clicked
switch to costume [costume 1 v]
set [question counter v] to (0)
set [incorrect answers v] to (0)
set [correct answers v] to (0)
set [did not answer v] to (0)
set [next costume v] to (0)
repeat (length of [answers v])
reset timer
ask (item (question counter) of [answers v]) and wait
if <(timer) > [3.5]>
change [incorrect answers v] by [1]
else
if <(answer) = (item (question counter) of [answers v])>
change [correct answers v] by [1]
else
change [incorrect answers v] by [1]
end
end
change [question counter v] by [1]
change [next costume v] by [1]
broadcast [next costume v]

sad  sorry, i never experienced lists and i hardly know how to use them.

Last edited by Liamadams (2013-05-04 21:51:12)


http://i39.tinypic.com/3309476.jpg

Offline

 

#4 2013-04-25 19:45:33

ethwok
Scratcher
Registered: 2012-09-10
Posts: 100+

Re: Script shop!

Help with level script where when you touch an item, it goes to the next level/background. I need help because when I touch the door it always turns to a level higher than +1. For instance it will go from level 1 to level 4


http://displaypicks.com/wp-content/uploads/2013/01/Animals-12.jpg
I AM ETHWOK

Offline

 

#5 2013-04-25 21:06:36

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: Script shop!

ethwok wrote:

Help with level script where when you touch an item, it goes to the next level/background. I need help because when I touch the door it always turns to a level higher than +1. For instance it will go from level 1 to level 4

did you use the broadcast and receive block yet?

broadcast [ v]

when i receive [ v]
I think i understand what you are trying to say. So where is the starting point at the beginning at the level? Where excacly do you start at? Well if you do this and type in excactly where you want to start at, it will do the script correctly. So, use this in the script where you broadcast the level. For example, this is good to use.
when gf clicked
forever if <touching [door v]?>
 broadcast [level 2 v]
 go to x: [wherever you want the x to be] y: [wherever you want the y to be]
But dont actually type in, "wherever you want the x/y to be." I just used that because i didnt know where the sprite starts at the level. Hope this helps!  big_smile

Last edited by Liamadams (2013-04-25 21:06:57)


http://i39.tinypic.com/3309476.jpg

Offline

 

Board footer