Ignore:
Timestamp:
10/01/09 07:13:39 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #103: Patch by Elie De Brauwer, Added possibility to make the player character run, this can be toggled with the run console command, comment[s:trac, t:103]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/engine.py

    r287 r295  
    5050        self.mapchange = False 
    5151        self.gameState = GameState() 
     52        self.pc_run = 1 
    5253 
    5354    def reset(self): 
     
    261262           @param position: Screen position of click 
    262263           @return: None""" 
    263         self.gameState.PC.run(position) 
     264        if(self.pc_run==1): 
     265            self.gameState.PC.run(position) 
     266        else: 
     267            self.gameState.PC.walk(position) 
    264268         
    265269    def changeMap(self, map, targetPosition): 
Note: See TracChangeset for help on using the changeset viewer.