that move a circle with pgup and....
But now i want to do one more thing.
When a user keydown a pgup or...
It goes automatically.
I have written this with my logic in for loop that you can see in the picture.
It works fine, but when i click it goes like 10 times 5 pixels.
I want to use delay here,
How i can do delay?
I have used with task.delay()
But does not work
Time to learn about delta timing if you want a constant speed regardless of program load or hardware
Did you put task.delay() with await if not, it doesn't have any effect.
Обсуждают сегодня