Forum begins after the advertisement:


[Part 4] RestoreTimeScale is not working while dashing

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part 4] RestoreTimeScale is not working while dashing

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15280
    GoogleSheets
    Level 1
    Participant
    Helpful?
    Up
    0
    ::
    void Update()
        {
            GetInputs();
            UpdateJumpVariables();
            if (pState.dashing) return;
            RestoreTimeScale();
            FlashwhileInvincible();
            Flip();
            Move();
            Jump();
            StartDash();
            Attack();
            Heal();
            CastSpell();
        }

    this is because if you dash it returns. so you should put RestoreTimeScale(); up

    if (pState.dashing) return;
    #15296
    Terence
    Level 30
    Keymaster
    Helpful?
    Up
    0
    ::

    Thanks Google Sheets, I’ve formatted your post for you

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

Go to Login Page →


Advertisement below: