Chasersgaming
New member
I have been looking through the scripts, trying to familiarise myself with the code and how they work and correspond etc as i want to be able to manipulate the scripts in my own way, however, im struggling to get my head around a few things, such as 'player states'. im currently using the platform module, so in game objects i have player, melee etc. i wanted to change the melee to something else from either a button press or a collision with a particular tile. in order for my player to behave differently, So im kind of asking, how does one change the 'player state'? what script is pointing to what state?
example:
Player 'sober state'(game object player)= inputs = up moves up ,down moves down, left moves left, right moves right. (normal module script)
player 'drunk state'(game object melee?)= inputs = up moves down, down moves left, left move right , down moves up.
if a flag was active change state to ......... else.......... change back
hope i explained that well, probably not.
example:
Player 'sober state'(game object player)= inputs = up moves up ,down moves down, left moves left, right moves right. (normal module script)
player 'drunk state'(game object melee?)= inputs = up moves down, down moves left, left move right , down moves up.
if a flag was active change state to ......... else.......... change back
hope i explained that well, probably not.