Re: Help with movement on Map in Python

2016-07-29 Thread AudioGames . net Forum — Developers room : majno via Audiogames-reflector
Re: Help with movement on Map in Python Try to add a python.jkm each time the game is initialized and delete that python.jkm when the game close. only with it jaws will not interfere with arrows keys.The python.jkm should contain: the leftarrow, rightarrow, uparrow and downarrow set to =

Re: Help with movement on Map in Python

2016-07-18 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Help with movement on Map in Python Jaws seems to be a recuring problem for a lot of things, i'm not sure if PyHook will help that or not. For a better response rate though you can set up a pre-trigger with the existing timer mechanism. This would give you an instant reaction, then

Re: Help with movement on Map in Python

2016-07-18 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Help with movement on Map in Python Jaws seems to be a recuring problem for a lot of things, i'm not sure if PyHook will help that or not. For a better response rate though you can set up a pre-trigger with the existing timer mechanism. This would give you an instant reaction, then

Re: Help with movement on Map in Python

2016-07-18 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Help with movement on Map in Python So I figured out part of the issue I was having with map. So it I use jaws and it seems that Jaws was intercepting my keyboard commands for the arrow keys. I had this problem once before, but once I got my code fixed, pygame was playing nicely with

Re: Help with movement on Map in Python

2016-07-06 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Help with movement on Map in Python Another way to adjust the speed of updating in myposted example would be to adjust the keyPress["time"] check from 100, to, say 10. def update(self): if self.keyPress["time"] >= 10: self.keyPress["time"] = 0I noticed

Re: Help with movement on Map in Python

2016-07-06 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Help with movement on Map in Python Thanks thggamer, I found that using pygame.time.wait(10) helped, however I don't understand where you were referring to for inserting the if pygame.time.get_ticks() >= move_timer:     # Move code goes here     move_timer = pygame.time.get_ticks() +

Re: Help with movement on Map in Python

2016-07-06 Thread AudioGames . net Forum — Developers room : thggamer via Audiogames-reflector
Re: Help with movement on Map in Python Hello.I think that the problem is that your character is moving everyiteration of the loop.To solve this, you could try something like that inside your movingcode:if pygame.time.get_ticks() >= move_timer:    # Move code goes here    move_timer =

Re: Help with movement on Map in Python

2016-07-06 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector
Re: Help with movement on Map in Python Try setting your event.key to null at the bottom of the loop. URL: http://forum.audiogames.net/viewtopic.php?pid=267019#p267019 ___ Audiogames-reflector mailing list

Re: Help with movement on Map in Python

2016-07-06 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Help with movement on Map in Python That is strange, I have spent the past several hours trying tomake this work, but I can't seem to get it working just right.I am unable to get this event loop working, I changed it back to pygame.event.wait() and I was able to get some results, but I

Re: Help with movement on Map in Python

2016-07-06 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Help with movement on Map in Python Hm, I'm not sure what the rest of the code your importing looks like, such as game, menu, and soundHandler. I don't normally use Pygame and don't have accessible_ouput2 installed, but I tinkered with it abit to get it working by opening a window in

Re: Help with movement on Map in Python

2016-07-05 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Re: Help with movement on Map in Python Thanks magurp244, I thought I needed something like that, but I just couldn't think of how to set it up. So I tried it, but I am now unable to move at all. It loads my map and I have no footstep or wall sounds when I press the arrow keys. I would say

Re: Help with movement on Map in Python

2016-07-05 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector
Re: Help with movement on Map in Python I haven't used python, so I don't know if this is correct. I think what you're running into is an issue with your event.key variable.I don't think it's updating after each frame, so when you push up, it sets the key to up, but I'm not sure if it's

Re: Help with movement on Map in Python

2016-07-05 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Help with movement on Map in Python I think the problem may be that your input handling is bottlenecking. Your using "pygame.event.wait()" which handles one element in the event buffer at a time, and then forcing the system to wait between each item in the buffer with time delay. Try

Help with movement on Map in Python

2016-07-05 Thread AudioGames . net Forum — Developers room : TJ . Breitenfeldt via Audiogames-reflector
Help with movement on Map in Python Hi, so I need some help, I have pretty much the bare bones for an 2d audio game in python, however, when I move around on the map I am having a bit of a problem when the arrows are held down.I have a sound played for a footstep, and I have a sound played