Search found 4 matches

by rita-
Tue Aug 18, 2020 4:24 pm
Forum: General
Topic: Any ideas to implement time-based queue priority?
Replies: 4
Views: 5647

Re: Any ideas to implement time-based queue priority?

zorg wrote: Tue Aug 18, 2020 11:38 am You can store accumulated dt values over multiple frames in a table, and you can sort using those values, for instance (e.g. comparing them to already known time intervals or something, i'm not 100% sure i get what you'd like to do).
thank you so much!! now i have worked it out :ultrahappy:
by rita-
Tue Aug 18, 2020 2:28 pm
Forum: General
Topic: Any ideas to implement time-based queue priority?
Replies: 4
Views: 5647

Re: Any ideas to implement time-based queue priority?

You can store accumulated dt values over multiple frames in a table, and you can sort using those values, for instance (e.g. comparing them to already known time intervals or something, i'm not 100% sure i get what you'd like to do). thanks for reply! ^^ the thing i would like to do is like a battl...
by rita-
Tue Aug 18, 2020 9:49 am
Forum: General
Topic: Any ideas to implement time-based queue priority?
Replies: 4
Views: 5647

Any ideas to implement time-based queue priority?

I wanna implement a time-based priority for the queue containing actions of my game's roles. :crazy: It is necessary for the logic running. :o: My idea is use time mark to sort the queue. But I am confused, in LÖVE we could only get delta time between last 2 frames in love.update(), and then I total...
by rita-
Sat Aug 08, 2020 3:30 am
Forum: Support and Development
Topic: love.mousepressed called before or after love.update?
Replies: 1
Views: 1598

love.mousepressed called before or after love.update?

i wanna know if some data is processed in love.mousepressed( or other inputs), will the result be known in current love.update or next frame's love.update?

thanks :crazy: