Forum begins after the advertisement:


[Part 7] Error with my knife weapon following tutorial

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 7] Error with my knife weapon following tutorial

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15649
    Enferno
    Participant
    Helpful?
    Up
    0
    ::

    I’ve been following the “Creating a Rogue-like (like Vampire Survivors)” series and right at the end of the 6th video, I am getting a massive error that I just cannot figure out…

    image

    I’m also a patron and I even copied everything inside the PlayerStats.cs and I still get this error. Not sure where I went wrong as I’ve watched this video many times…

    * I like watching the video and typing my own codes first, just to learn, before I just go and copy/paste everything from the blog.

    **Edit I finally figured it out. I assigned the Garlic / Knife Controllers to the Weapon and not Character(player).

    However, I ran into a new issue…

    The Garlic works perfect. The Knife doesn’t. It will spawn at first, but just be a image on the ground behind the character, but then it will never shoot out like it did before.

    image

    #15650
    Enferno
    Participant
    Helpful?
    Up
    1
    ::

    **EDIT! I found the fix. I didn’t save it after putting the Knife Controller to the Knife Player.

    Everything seems to be working, except not deleting the Healing Potion clones (but I think that is address in later videos).

    #15667
    Terence
    Keymaster
    Helpful?
    Up
    0
    ::

    Glad you managed to fix it Enferno. If you have any issue with the health potion clones, you can post a video here and I’ll have a look at it for you.

    #15670
    Enferno
    Participant
    Helpful?
    Up
    1
    ::

    Hey thanks a lot! Much appreciated!

    However, it was fixed in the first part of episode: 8 :P

    The scene wasn’t deleting the potions / etc. However, this line fixed the error:

    if(!gameObject.scene.isLoaded)  //Stops the spawning error from appearing when stopping play mode
    {
        return;
    }

    Thanks again :)

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

Go to Login Page →


Advertisement below: