Timer on screen


#1

How to I put a timer on screen so you can see it?


#2

Like a countdown?


#3

Yes, like a countdown.


#4

Oh, ok! Ill be right back! :wink:


#5

You need to use values! So make the certain values (seconds, minutes,) increase every unit of time that you want it, but make sure to reset it every sixty units. Sorry if that is really confusing.:stuck_out_tongue:


#6

Here are some pictures!

Pictures


First we have to set a value! I call mine, time!


Then after the value, do a repeat times the number of the timer, increase value time by -1!

Then open up a new rule, and put "Repeat forever, set text to time!

Here is a link if you want to look at the code! https://c.gethopscotch.com/p/xvimjon2k


#7

First, you make a text object. :D
I didn't get a screenshot for that. XD

The set value's numbers must match with the repeat number (e.g. SV to 50, RT 50), unless you are counting down by a number higher then one, then the repeat times need to be divided by the number you are counting by.

Create another rule.

This rule controls how the timer looks.

You can add blocks to make it bigger smaller, and add anything else you want to add! :D


#8

How do I get a time value?


#9

Inside the Value function ... I don't see a Time button.. do I need to create one?


#10

Yep! You need to create a new value under "set value" when you first make the project. After that it's "increase value."


#11

It's just a normal value! :D


#12

Welcome to the forum! Are you new to hopscotch as well? If so glad you are interested into people helping you make awesome stuff!


#13

For some reason it is coming up as time... time.. and not working.. now when I hit play my Timer text disappears?


#14

Do you have this one second..


#15

Look at @SmilingSnowflakes's last post. That should help!!!


#16

Make a new rule, and drag out a repeat forever block, then drag a set text block into it, and then make it set text to your value. :D


#17


#18

And the hopscotch team liked my project!