mustachebutter / GodotAutoSurvival

0 stars 0 forks source link

[BUG] Inherited stats from BaseCharacter when modified in editor doesn't update in game #15

Closed mustachebutter closed 5 months ago

mustachebutter commented 5 months ago

Describe the bug Inherited stats in Player/Enemy from BaseCharacter are exported variables to edit in Editor. However, changing it in the editor doesn't set those new variables to the child class (Player/Enemy).

To Reproduce Steps to reproduce the behavior:

  1. Go to Editor and open "Player" scene
  2. Modify value of stats
  3. Start the game and observe the log

Expected behavior The stats should be changed to whatever is in the editor Have tried:

mustachebutter commented 5 months ago

Fixed by hitting "Build" button in the top right of editor OR/AND reload the project/ scene