|
HitCoder
|
 |
Reply #1 Posted on: August 27, 2018, 07:38:05 am |
|
|
 Location: Oxford, England Joined: Aug 2014
Posts: 157
|
From what I can tell this shouldn't be happening... :/ your code appears fine and i can't think what could be causing this, i'll have a look though EDIT: Ok so it can't be a problem with your code... since I just tried it and everything works fine; https://drive.google.com/file/d/1vLEruwIe3sshcvpoRoZoG6g2o1lDvtxs/view?usp=sharing
|
|
« Last Edit: August 27, 2018, 07:46:20 am by HitCoder »
|
Logged
|
Computer Scientist, Programmer in C#, C/C++, Java, Python, GML, EDL, and more. Hobbyist musician. DISCORD: HitCoder#4530
|
|
|
hpg678
|
 |
Reply #2 Posted on: August 27, 2018, 08:41:29 am |
|
|
 Location: Barbados Joined: Mar 2017
Posts: 283
|
i talked to one of the developers and he, as well as I, did get the same response at intervals. Rest assured he will look into as soon as possible. I've found that for me when I include a background, there is no lag, so u may want to do that as a temporary measure.
|
|
|
Logged
|
[compromised account]
|
|
|
|
hpg678
|
 |
Reply #4 Posted on: August 28, 2018, 04:15:08 pm |
|
|
 Location: Barbados Joined: Mar 2017
Posts: 283
|
I came across an article which in my opinion is one of the best articles I have ever read pertaining to game development. i believe it can help you with your problem, on so many other levels that may occur in your game, or rather future games. https://www.yoyogames.com/blog/432/buttery-smooth-tech-tips-movementI did a sample test and the results were much more than what I expected.
|
|
|
Logged
|
[compromised account]
|
|
|
HitCoder
|
 |
Reply #5 Posted on: August 29, 2018, 06:02:05 pm |
|
|
 Location: Oxford, England Joined: Aug 2014
Posts: 157
|
running the code on a Windows installation of Enigma.
What OS were you attempting to run this code on prior? EDIT: After running the same code on Manjaro Linux, i'm noticing the problem, very prominently. I'll mess around with some things for a moment and get back to you. EDIT2: In the game settings, I went to ENIGMA>API and set Platform from Linux X11 to SDL and it fixed things. I could hazard a guess that maybe in X11 mode when you hold a key down it registers the keystroke inputs in the same way a text editor would, in the way that holding w down will tell the game it's held down, then the window manager spams that key on and off like when you hold the letter down in a text form. SDL seems to work fine on Linux, and tbh it's probably best to stick to cross-platform things anyway if they work. That's my personal belief though.
|
|
« Last Edit: August 29, 2018, 06:54:33 pm by HitCoder »
|
Logged
|
Computer Scientist, Programmer in C#, C/C++, Java, Python, GML, EDL, and more. Hobbyist musician. DISCORD: HitCoder#4530
|
|
|
|
|
Goombert
|
 |
Reply #8 Posted on: September 17, 2018, 09:41:50 pm |
|
|
 Location: Cappuccino, CA Joined: Jan 2013
Posts: 2991
|
Hey guys, sorry for my late response here. I finally got around to this issue not only because I keep getting more reports about it but I also continue to have the issue myself, so it was getting really annoying. Regardless, I've got good news and we do have a fix! As you can see on the GitHub issue posted oh-so-kindly by HitCoder, I first documented my findings while looking for the issue. https://github.com/enigma-dev/enigma-dev/issues/1375I tracked the cause down to the pull request in which we generalized the main loop so we could add SDL support. https://github.com/enigma-dev/enigma-dev/pull/1259The solution was pretty simple, I just had to tweak the event handling slightly to make it correct again. https://github.com/enigma-dev/enigma-dev/pull/1390I am hoping to get that reviewed and we'll have it merged into the repo soon. Thanks for your patience!
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect. 
|
|
|
|