Forum begins after the advertisement:

Save Soil

The Save Soil Movement

Poor farming practices and policies across the world have led to the degradation of agricultural soils in the world. This has led to the loss of nutritional value in our food over the years, and it will affect our food production capabilities in the coming decades.

Learn more about Save Soil →


Character Selector Different Skins

  • 31 August 2023: We recently fixed a bug where our Patrons were not getting their titles displayed properly on their posts.

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity Character Selector Different Skins

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11802
    Jeremy Lock
    Participant

    Hello,

    I have 2 different characters that look different but your character selector only implements the scriptable object. How can I make the characters also look different with animations etc not just the stats?

    #11806
    Terence
    Keymaster

    I’m not very clear about the inner workings of the Vampire Survivors series’ codebase, but generally speaking, if you want different animations for another character, you will have to create a different Animator Controller for the other character and prefab it.

    Let me know if that makes sense.

    #11809
    Xavier Lee
    Keymaster

    Hi Jeremy Lock, that’s an interesting question.

    It sounds to me that you want the sprite and animator controller to be different depending on which character is selected. This is a relatively straightforward process.

    1. First, you have to add a sprite and animator controller fields to the CharacterScriptableObject
    2. Then, when assigning the data in the PlayerStats, simply change the sprite and animator controller to that of the characterData‘s

    Hope this helps!

    #11866
    Windfinz
    Participant

    Hi Xavier Lee
    im currently having a problem with the second step of assigning the data to the PlayerStats script, could you send me a picture of the code?

    #11868
    Terence
    Keymaster

    Hi Windfinz, we post all our codes in the accompanying articles for each video. You can find a list of all the articles here: https://blog.terresquall.com/series/creating-a-rogue-like-vampire-survivors/

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

Go to Login Page →


Advertisement below:

Save Soil

The Save Soil Movement

Poor farming practices and policies across the world have led to the degradation of agricultural soils in the world. This has led to the loss of nutritional value in our food over the years, and it will affect our food production capabilities in the coming decades.

Learn more about Save Soil →