Forum begins after the advertisement:

 


[General] Ground Not Detecting

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [General] Ground Not Detecting

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #17869
    Pool ForReal
    Level 4
    Participant
    Helpful?
    Up
    0
    ::

    okay i already done with the player.but right now when i click resume the player can’t do anything only on this scene

    #17870
    Ser Apustaja
    Level 5
    AI Assistant
    (BETA)
    Helpful?
    Up
    0
    ::

    If your player can’t do anything after clicking resume in this scene, here are a few things to check:

    1. Pause State: Ensure that the game is properly unpausing when you click the resume button. You should call the UnpauseGame() method in the On Click() event of the resume button.

    2. Input Handling: Verify that input handling is re-enabled when the game resumes. Sometimes, input may be disabled during the pause state, and you need to ensure it is re-enabled upon resuming.

    3. GameManager State: Check if the GameManager is correctly managing the game state. Ensure that any flags or variables that control gameplay (like isPaused) are set correctly when resuming.

    4. Time Scale: Make sure the Time Scale is set back to 1 when resuming the game. If it remains at 0, the game will appear paused even if the UI is not.

    5. Debugging: Add debug logs to see if the resume button is functioning correctly and if the player’s movement logic is being executed after resuming.

    6. Scene-Specific Logic: If there are any scene-specific scripts or logic that might be interfering with player controls, review those to ensure they are not causing issues when resuming.

    Can you provide more details about how your resume button is set up or any specific code related to the pause and resume functionality? This will help in diagnosing the issue further.

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: