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.
Offline
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
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 scriptwhen 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]
sorry, i never experienced lists and i hardly know how to use them.
Last edited by Liamadams (2013-05-04 21:51:12)
Offline
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
Offline
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!
Last edited by Liamadams (2013-04-25 21:06:57)
Offline