Forum begins after the advertisement:


[Part 10] Issues with getting the Level up menu to work

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 10] Issues with getting the Level up menu to work

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #19449
    Yomi
    Level 12
    Silver Supporter (Patron)
    Helpful?
    Up
    0
    ::

    Ive been trying to set up the level up menu for some time now but. I was finally able to get the menu to display after leveling up, but now I dont know how make it show the passive items, name and description in the container. That in turn makes it impossible to use the buttons to apply passives. For what its worth, the only thing I can think of that might be the issue is the prefabs for the passive items or the passive item scriptable objects.

    #19477
    Terence
    Level 32
    Keymaster
    Helpful?
    Up
    0
    ::

    Hi Yomi, can you share the following?

    1. Script(s) which you are using to display your menu
    2. A screenshot of what your current menu looks like, and how you want it to look like
    3. Your GitHub repository. This way we can jump in and have a look at your codebase / help you directly. You can check out this video to see how to set up your project.
    #19478
    Yomi
    Level 12
    Silver Supporter (Patron)
    Helpful?
    Up
    0
    ::

    Its using the gamemanager inventorymanager and playerstats script. It likely has more cause I messed around with it trying to fix the weapon projectile spawning ontop of other stuff. What Im trying to do is have the menu show up to 4 of the passive items of the 2 I created so far as depending on whether its in the inventory already or its current level and be able to use them since I didnt want to add weapons to the level up menu.

    View post on imgur.com

    https://github.com/bxstxrdyomi/survivorProject

    #19479
    Terence
    Level 32
    Keymaster
    Helpful?
    Up
    0
    ::

    Thanks for sharing your project. Will get back to you as soon as possible.

    #19480
    Yomi
    Level 12
    Silver Supporter (Patron)
    Helpful?
    Up
    1
    ::

    thank you,

    has upvoted this post.
    #19481
    Sean Ng
    Level 7
    Moderator
    Helpful?
    Up
    0
    ::

    Hi Yomi, looking through your project and your problem from what I understand you’re having problem with information displaying which causes error when clicking to get passive. From what I found the reason why no information is displaying is due to your scriptable object not having any information in their respective fields.

    As for the buttons not working it is cause by the Passive Item UI Slots not having any image it is referencing so the when you click the buttons it throws a error

    View post on imgur.com

    the first picture is the your spinach scriptable object you need to give it a name, description and icon for the level up to display something otherwise it will display nothing.

    Second picture is the “Passive Item UI Slots” in the Inventory script on your player character, you need to make a image objects within your canvas so when you pick up a passive it will go display to the image.

    Third and fourth are just the result after the changes, the passive icon I kind of throw middle of nowhere but it is still a image on the canvas.

    #19482
    Yomi
    Level 12
    Silver Supporter (Patron)
    Helpful?
    Up
    0
    ::

    I see. so I’d assume fixing these things would make it work then. I’ll see how these suggestions work for me. Thank you for taking the time to check my project, it’s greatly appreciated.

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

Go to Login Page →


Advertisement below: