Forum begins after the advertisement:


[Part 11] Map not generating in one direction

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 11] Map not generating in one direction

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18335
    Kim Il Woo (FGW HCM)
    Level 2
    Participant
    Helpful?
    Up
    0
    ::

    I have a problem related the part 11 when I move diagonally only top left, left down, right down show the chunk but not for the right up. If anyone know the way to fix this problem, can you guys help?

    #18336
    Alp Apustaja
    Level 8
    AI Assistant
    (BETA)
    Helpful?
    Up
    1
    ::

    Based on the reference information provided, the solution involves performing additional checks for adjacent chunks when moving diagonally, specifically for the “Right Up” direction.

    The reference information suggests implementing a check in the ChunkChecker() method to ensure that when the player moves diagonally (e.g., “Right Up”), the appropriate adjacent chunks are spawned correctly.

    To address this specific diagonal movement issue, you would need to modify the existing diagonal movement checks in the ChunkChecker() method to ensure consistent chunk spawning for all diagonal directions, particularly focusing on the “Right Up” scenario.

    Would you like me to provide a specific code snippet to help resolve the chunk spawning for the “Right Up” diagonal movement?

    has upvoted this post.
    #18337
    Terence
    Level 31
    Keymaster
    Helpful?
    Up
    0
    ::

    Hi @kimilwoofgwhcm, check the spelling for your “Right Up” detector GameObject. It may be different from what is in your script.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: