3 ms·
The player object would represent the current person playing the game, i.e. you. The warrior represents the object on the screen. The player tells the warrior t
by snikch 13y ago
The player object would represent the current person playing the game, i.e. you. The warrior represents the object on the screen. The player tells the warrior to take actions, so it makes sense that they're different objects.
If there were multiple warriors then your code would no longer make sense, as the control logic would have to be changing the player_instance.warrior object.
- xentronium 13y ago> If there were multiple warriors then your code would no longer make sense, as the control logic would have to be changing the player_instance.warrior object. You need to keep previous state about warrior. E.g. delta health.