Asset

Decided to make some simple things for newcomers

2

FBIJ1mm44u2T 2020-03-04 01:48

Just a simple Timer takes like 10 seconds but if you need help with anything else lemme know

Simple Timer.nx | Open in app
2020-03-04 01:48

was8bit 2020-03-04 05:17

Each one unit of wait is 1/60 of a second precisely... so your WAIT 50 is 50/60 or 5/6 of a second...

NX graphic speed is 60 frames per second, or each frame is 1/60 of a second... so using WAIT 1 in a game loop gives it its fastest best speed :)


was8bit 2020-03-04 05:20 (Edited)

To use timer function without making your loop waiting, here is a better way... i will set it to track seconds...

SECONDS=0
TICK=0
NUMBER 0,0,SECONDS,2
DO
ADD TICK,1,0 TO 59
IF TICK=0 THEN
INC SECONDS
NUMBER 0,0,SECONDS,2
END IF
WAIT 1
LOOP


Log in to reply.