Code Monkey home page Code Monkey logo

Comments (6)

WagnerGFX avatar WagnerGFX commented on May 5, 2024 4

The problem seem to be the order of the state transitions in the Walking state. Since the state machine evaluates the transitions in order, JumpAscending is evaluated before Sliding.

Moving the Sliding transition to first seems to solve the issue.

For future reference to the documentation, when creating a transition table:

  • The transition priority goes from top do bottom.
  • Give priority to transitions that break the player's flow like Sliding, taking damage, etc.
  • Then check for important transitions like jumping and attacking.
  • Lastly check for smaller transitions like idle.

from open-project-1.

ciro-unity avatar ciro-unity commented on May 5, 2024 3

Saw the issue even on main. I see how it is: you can climb if you spam the button, because you probably never enter the JumpDescending state, so you can't go into Sliding.

Can be probably fixed by editing the State Machine flow, so we'll do it once the State Machine is more done.

@DeivSky @GFX5000i @kgc00 etc. FYI ☝🏻

from open-project-1.

ciro-unity avatar ciro-unity commented on May 5, 2024

Wasn't this bug fixed?
Are you using the very latest version of the game?

In any case, we won't have Terrain in the game so I think the current implementation is satisfactory, and the player cannot climb very steep surfaces.
Or maybe they can now, with the new implementation of the state machine?

I'll keep the bug open so we have an eye on it.

from open-project-1.

antoniucraciun avatar antoniucraciun commented on May 5, 2024

I tested it on main branch and state-machine-improvements branch and the unity version is 2019.4.11f1. I attached below 2 short recordings.

branch_main
First one is from 'main' branch.
branch_state_machine_improvements
Second one is from 'state-machine-improvements' branch.

from open-project-1.

ciro-unity avatar ciro-unity commented on May 5, 2024

Ah, thanks for the info. So it's happening more on thestate-machine-improvements branch?

We're still working on that, so I'd hold off in "fixing" the bug, but as I said I'll keep this ticket open to remind ourselves.

from open-project-1.

ciro-unity avatar ciro-unity commented on May 5, 2024

Great find, @GFX5000i!

from open-project-1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.