Character Selection & Prefab Assignment


Overview

This week focused on enhancing the main menu with a character selection system, implementing confirmation dialogs, and resolving prefab assignment issues to enable arrow functionality for the Elf character. Additionally, we identified animation glitches and the lack of combat capabilities in the Valkyrie character.

Main Menu Enhancements

Character Selection:

  • Implemented a character selection screen allowing players to choose between Elf and Valkyrie.
  • Added interactive buttons for each character with accompanying visuals.

Confirmation Dialog:

  • Introduced a popup window prompting players to confirm their selected character.
  • This ensures players make intentional selections, enhancing the user experience.

Prefab Assignment Fix

Issue Encountered:

  • Error: UnassignedReferenceException for arrowPrefab in the PlayerMovement script.
  • Cause: The arrowPrefab was not assigned in the Inspector for the Elf prefab, leading to null references when attempting to instantiate arrows.

Solution Implemented:

  • Direct Assignment: Manually assigned the Arrow Prefab to the arrowPrefab field in the PlayerMovement script of the Elf prefab via the Unity Inspector.
  • Outcome: Resolved the error, restoring arrow-shooting functionality for the Elf character.

Lessons Learned:

  • Always ensure that all public fields in scripts are properly assigned in the Inspector to prevent runtime errors.
  • Regularly review prefab configurations after making script changes to maintain consistency.

Valkyrie Character Challenges

Animation Glitches:

  • Issue: Valkyrie’s animations exhibit stuttering and unnatural transitions.
  • Impact: Reduces visual quality and player immersion.

Combat Capabilities:

  • Current Status: Valkyrie lacks implemented offensive and defensive abilities.
  • Next Steps:
    • Develop and integrate combat mechanics for offensive and defensive actions.
    • Refine animation transitions to ensure smooth and natural movements.


Upcoming Goals

  • Valkyrie Enhancements: Address animation issues and implement combat mechanics to make Valkyrie a fully functional character.
  • UI Improvements: Further refine the main menu and confirmation dialogs for a better user experience. Currenty taking two key presses to select a character.
  • Comprehensive Testing: Conduct thorough playtesting to ensure stability and functionality after recent changes.

Key Takeaways

  • Prefab Management: Properly assigning and managing prefab references in the Inspector is crucial to prevent runtime errors and ensure smooth gameplay.
  • User Interface Design: Implementing confirmation dialogs enhances user experience by reducing accidental inputs.
  • Character Development: Ensuring each character is fully functional and visually appealing is essential for game balance and player satisfaction.

Files

The Gauntlet.zip Play in browser
74 days ago

Leave a comment

Log in with itch.io to leave a comment.