How to create two connected counters in blueprint: one to count from 0 to 15 and second to count from 0 to 59

TimeLine Node can be of help. You can setup a timeline of 60 sec.
You can either have a single variable in the TimeLine and trigger event at 15s then trigger another at 59.
You can also use 2 separated variables in the timeline if needed.
I think that its one of the most easier way to achieve that and to give you the ability of triggering events at any time within the timeline.

How to create two connected counters in blueprint: one to count from 0 to 15 and second to count from 0 to 59. Note: zero of 1st counter to be equal to 0,1,2,3 of the 2nd counter; one of 1st counter to be equal to 4,5,6,7 and so on.
In C++ I made this task for zero time, but here in blueprint this f…k me in the f…g cycle Smile

timeline is not an option, because I need not to be linked by time, only cycles connected I do not how is the way I think

I though it was timebased when I saw 0 to 59 :slight_smile:

So, depending on some event, the counter will be updated, right?
Do you intend to update only one counter and reflect the change in the other?
Do you know in advance which counter will be updated first?

Maybe the MapRange node is a solution.

Value: {current value of counter 1}

InRangeA: 0

InRangeB: 15

OutRangeA: 0

OutRangeB:59

→ you set the return value to counter 2.

or

Value: {current value of counter 2}

InRangeA: 0

InRangeB: 59

OutRangeA: 0

OutRangeB:15

→ you set the return value to counter 1.

The Floor Node can be used against the return value if you need strict integers.

Hi Tensa, Thank you for your support. After three days I did it. I don’t use floor or timeline. Here is my blueprint. Later I will submit all project for Day/Night Cycle with Visible Clock

Great!
When are you triggering this?

Hi Tensa, this is executing on each “Event Tick” in four major intervals: 1st from 0 to –90; 2nd from –90 to 0; 3rd from 0 to 90; 4th from 90 to 0. This represent one full sun’s round of 360* (BP_Sky_Sphere actor).
I accept that 90’ orbit have 6 equal intervals by 15.
I calculate each minute as set 4 intervals to be equal to 1 interval, because I have total 15 interval for 1 hour in total of 6 hours for the period from 0 to 5 <=> 90’ sun moving. This is the same to have two counters and while 1st counter is equal to 1 → the 2nd counter is equal to 1,2,3,4 (2->5,6,7,8) and so on.