Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 18, 2015

For some reason no matter how much I changed the speedChasing variable,
the TV monster wouldn't go faster. So what I did was add a bool argument
in the MoveTurn() function, and set it in the if else statement where
MoveTurn() is called, since that statement already checks for if player
is seen. If true it would speed up the monster based on a constant that
i added to the movement variable. if it was false it would move at the
normal speed. It is set so that you can't outrun it, but it wont catch
you unless you stop moving. It basically chases you out of the room or
you have to hide.

For some reason no matter how much I changed the speedChasing variable,
the TV monster wouldn't go faster. So what I did was add a bool argument
in the MoveTurn() function, and set it in the if else statement where
MoveTurn() is called, since that statement already checks for if player
is seen. If true it would speed up the monster based on a constant that
i added to the movement variable. if it was false it would move at the
normal speed. It is set so that you can't outrun it, but it wont catch
you unless you stop moving. It basically chases you out of the room or
you have to hide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants