I am making a ping pong game using JavaFX, but before I am going to make that, I like to test the KeyEvents. I made a simple ping pong game about 2 years ago, but I like to improve my game. And was pretty bad controlls back when I made the ping pong game, because of the not smooth controls. so here is the problem: whenever I holdpress A and switch quickly to holdpress D or D to A, same with (W to S and S to W). it just takes a little break and then move, is there something …

Member Avatar
Member Avatar
+0 forum 4

I am using Python and wxPython to attempt to make a 2d game. When w is pressed, the tiles (except the character) should move so it looks like you are moving. The problem is, when the key is pressed, nothing moves. I added a line of code(no longer there) to make sure the tile position variable was changing, which it was. So, the position is not updating. Is there a way to reload the frame? [code] import wx level=1 attack=1 defense=1 health=5 map4_31_locationx=270 map4_31_locationy=170 class MainWindow(wx.Frame): def __init__(self): wx.Frame.__init__(self,None,-1,size = (600, 400)) self.panel = wx.Panel(self,-1) self.map4_31="C:/python27/game/4_31.gif" self.map1=wx.Image(self.map4_31,wx.BITMAP_TYPE_GIF).ConvertToBitmap() height=self.map1.GetHeight() width=self.map1.GetWidth() self.map1.map4_31 …

Member Avatar
Member Avatar
+0 forum 6

hi, i'm writing a snake game and so far i've gotten nowhere, not even to moving the hashes i'm calling snake, and that's what i'm gonna discuss now i know i don't clearly have an understanding of threading for animation but before this i've done lotsa stuff like bouncing frames etc but this time i just don't get it, where am i going wrong with the threads and all?! the damn label i call snake is just not moving! and btw, i'vent written any logic for the directional movement, just basic x,y axis movement,which means the snake won't ever go …

Member Avatar
Member Avatar
+0 forum 3

The End.