Discuss Scratch

miimiimii
Scratcher
57 posts

I need help with how to start a timer and how to make a clicks counter without a variable.

I need help with how to start a timer and how to make a clicks counter without a variable. Please tell me how to or send a link to a project that can help me. Thank you.
DotDash
Scratcher
1000+ posts

I need help with how to start a timer and how to make a clicks counter without a variable.

miimiimii wrote:

I need help with how to start a timer and how to make a clicks counter without a variable. Please tell me how to or send a link to a project that can help me. Thank you.
For the Clicks Counter, the easiest and most compact way is either a Variable or a List.
scubajerry
Scratcher
1000+ posts

I need help with how to start a timer and how to make a clicks counter without a variable.

Everything to do with timers is under the SENSING Tab. Generally you use the RESET TIMER block to start the timer. There is also a TIMER “variable” there that you can use like any other variable in compare or set variable statements.

I don't know how to count anything without a variable unless you want to make marks on the stage with the PEN. What are you trying to accomplish?
miimiimii
Scratcher
57 posts

I need help with how to start a timer and how to make a clicks counter without a variable.

@scubajerry thanks,

@DotDash I said a clicks counter without a variable

Last edited by miimiimii (Aug. 16, 2013 16:52:51)

eaglgenes101
New Scratcher
100+ posts

I need help with how to start a timer and how to make a clicks counter without a variable.

miimiimii wrote:

@scubajerry thanks,

@DotDash I said a clicks counter without a variable

More specifically, why don't you want to use a variable?
Lilifant7253
Scratcher
1000+ posts

I need help with how to start a timer and how to make a clicks counter without a variable.

miimiimii wrote:

I need help with how to start a timer and how to make a clicks counter without a variable. Please tell me how to or send a link to a project that can help me. Thank you.
Why don't you want to use variables? I think it's impossible without variables or lists.

Last edited by Lilifant7253 (Aug. 16, 2013 18:26:06)

Lilifant7253
Scratcher
1000+ posts

I need help with how to start a timer and how to make a clicks counter without a variable.

Sorry it's not impossible if you don't want to save for a long time. then you have to use a cloud variable. But if you want to count them just as long as the Project does something you can use clones. You can make a script that makes everytime if it was clicked a clone of it. when the project ends the clones will be deleted.
ProdigyZeta7
Scratcher
1000+ posts

I need help with how to start a timer and how to make a clicks counter without a variable.

I have an idea, but you're gonna need 3 sprites, each with costumes with text 0-9 (starting with 0). Label them “singles digit”, “tens digit”, and “hundreds digit”. Then do this:
//FOR THE BUTTON//
when button clicked
broadcast [click v]

//FOR THE "singles digit"//
when green flag clicked
switch to costume [zero v]

when I receive [click v]
next costume
if <(costume #) = [1]>
broadcast [change tens digit v]
end if

//FOR THE "tens digit"//
when green flag clicked
switch to costume [zero v]

when I receive [change tens digit v]
next costume
if <(costume #) = [1]>
broadcast [change hundreds digit v]
end if

//FOR THE "hundreds digit"//
when green flag clicked
switch to costume [zero v]

when I receive [change hundreds digit v]
next costume
//If absolutely necessary, make a "thousands digit" sprite//
You'll figure out the rest. Hope this works for you!

Last edited by ProdigyZeta7 (Aug. 18, 2013 00:33:47)

Powered by DjangoBB