Hi,
I have an issue with the keypressed function and would like to understand how exactly it works.
My problem is simple:
As the program takes a few milliseconds to calculate changes in the level, my player keeps on progressing as I hold a key down - which is an issue since I need to track his motion.
How can I pause or interrupt keyboard reading while updating the level?
I've used no coroutines or such in my prog, so that can't be it...
Thanks for your help,
jimflim
pause key function
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: pause key function
Can you please upload the .love so we can see what you mean?jimflim wrote:Hi,
I have an issue with the keypressed function and would like to understand how exactly it works.
My problem is simple:
As the program takes a few milliseconds to calculate changes in the level, my player keeps on progressing as I hold a key down - which is an issue since I need to track his motion.
How can I pause or interrupt keyboard reading while updating the level?
I've used no coroutines or such in my prog, so that can't be it...
Thanks for your help,
jimflim
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Re: pause key function
didn't want to cross-post, but here it is:
download/file.php?id=4321
when you close an area and keep a key down, you'll have a trace beginning in the middle - causing a crash -_-
download/file.php?id=4321
when you close an area and keep a key down, you'll have a trace beginning in the middle - causing a crash -_-
Re: pause key function
I was able to reproduce the crash but looking through the code I can't seem to find the cause.jimflim wrote:didn't want to cross-post, but here it is:
download/file.php?id=4321
when you close an area and keep a key down, you'll have a trace beginning in the middle - causing a crash -_-
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 12 guests