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/objects/actors.py

    r287 r295  
    122122     
    123123    def run(self, location): 
    124         """@type location: ??? 
    125            @param location: ??? 
     124        """Makes the PC run to a certain location 
     125           @type location: fife.ScreenPoint 
     126           @param location: Screen position to run to. 
    126127           @return: None""" 
    127128        self.state = _AGENT_STATE_RUN 
    128         self.behaviour.agent.move('run', location, self.behaviour.speed) 
    129          
     129        self.behaviour.agent.move('run', location, self.behaviour.speed+1) 
     130 
     131    def walk(self, location): 
     132        """Makes the PC walk to a certain location. 
     133           @type location: fife.ScreenPoint 
     134           @param location: Screen position to walk to. 
     135           @return: None""" 
     136        self.state = _AGENT_STATE_RUN 
     137        self.behaviour.agent.move('walk', location, self.behaviour.speed-1) 
     138       
    130139    def approach(self, location, action = None): 
    131140        """Approaches an npc and then ???. 
Note: See TracChangeset for help on using the changeset viewer.