Search results

  1. O

    Help: Unit Spawning bugs

    Here is the entire main loop, global and main variables initialized, and other important details: (Wall of code!) Sprites = [] #Manages all sprites #Red Stat Section REDHEALTH = 1000 REDGOLD = 50 REDCOMMAND = 100 #Blue Stat Section BLUEHEALTH = 1000 BLUEGOLD = 50 BLUECOMMAND = 100...
  2. O

    Help: Unit Spawning bugs

    That would help, but if I don't need the variable, how would I order the sprite to move and attack? should I place the code inside the class and call a move() or fight() function?
  3. O

    Help: Unit Spawning bugs

    Hello again OpenPandora. I am almost finished my game, Table Wars. Right now, there are two bugs I am having trouble with in my game. Both of which relate to the spawning of the units in the game. How I am spawning units currently is appending the sprite to a global group via a keystroke, like...
  4. O

    Help: Turn Based Strategy game

    Didn't see the edits there. Thanks a lot! Also, yeah, I have one month of experience :P
  5. O

    Help: Turn Based Strategy game

    [0] for x and [1] for y? I get syntax errors when I do that. If it helps, I'm running on Windows 7
  6. O

    Help: Turn Based Strategy game

    I tried what you said for diamond shape, but now I'm getting a different error: Traceback (most recent call last): File "C:\Users\Oventoaster\Desktop\Table Wars\Table Wars.py", line 772, in <module> main() File "C:\Users\Oventoaster\Desktop\Table Wars\Table Wars.py", line 166, in...
  7. O

    Help: Turn Based Strategy game

    I am currently building a turn based strategy game using Python/pygame. While unit spawning, movement and turn order work perfectly, I have hit a snag in the combat block. Say for example, I use a Red archer to attack a Blue Archer, as shown here: if mouseX in range(bluA.rect.left...
Back
Top