Sync

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: sync

  • None

Use

Pause function for a single frame. Used to delay actions. 30 frames = 1 second

Example


100:     call 101 //Call function 101
         window_msg 'Okay. I've waited 1 second. Now what?'
         winend 
         ret 
101:     sync //Pause for 1 frame
         addi R1, 00000001 //Add 1 to register R1
         jmpi_<= R1, 0000001E, 101 //If R1 is less then or equal to 30 jump to 101
         clear R1 //Set R1 to 0
         ret 

Also see

ret, call, window_msg, winend, addi, jmp_<=, clear