Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python ticks
#1
I'm trying to make an object wait and then move every 10,000 ticks. say I had 104 ticks and every time I click space bar the object waits for 10,000 ticks and then moves left. and the ticks continue... now this time I'm at 30,000 ticks and I click the space bar again wait 10 seconds and move left. how would I do that?
Reply
#2
https://docs.python.org/3.8/library/sched.html
Reply
#3
Thanks for the help but I don't understand that document. could you explain?

I was thinking more like... for every 10,000 ticks: x1=x1-20 to move the character left. not sure how to write that tho.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot remove one of the x-ticks from a 2x1 subplot. generalzu10 1 274 Mar-20-2024, 04:24 AM
Last Post: generalzu10
  How to set a sequence of midi note on and note off values in ticks tomharvey 2 2,183 Mar-25-2022, 02:33 AM
Last Post: tomharvey
  Missing ticks on X axis drunkenneo 0 1,746 May-29-2021, 04:16 PM
Last Post: drunkenneo
  Matplotlib Colorbar Ticks (Increase number) BennyS 1 8,854 Apr-18-2018, 04:00 PM
Last Post: BennyS

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020