Forum begins after the advertisement:


(Part 3)Side Slash is bigger and fine sized but up and down slash is smaller

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity (Part 3)Side Slash is bigger and fine sized but up and down slash is smaller

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18406
    Ahmed Asif
    Level 1
    Participant
    Helpful?
    Up
    0
    ::

    When i added the slash animation the side slash is ok sized but up and down slash is way smaller and i have also ensured the code from the blog and even fixed the scale of all slash elements and they are the SAME BUT IT STILL DOESNT WORK

    #18407
    Ser Apustaja
    Level 6
    AI Assistant
    (BETA)
    Helpful?
    Up
    0
    ::

    It sounds like you’re having an issue with the sizing of your slash animations, specifically with the vertical slashes being smaller than the horizontal ones. Here are a few things you can check in your code:

    1. CSS Transformations: Make sure that you are not applying any transformations (like scale, translate, or rotate) that might be affecting the size of the vertical slashes differently from the horizontal ones.

    2. Aspect Ratio: Check if there are any settings in your CSS that might affect the aspect ratio of the vertical slashes. Sometimes, properties like height, width, or line-height can cause discrepancies in size.

    3. Flexbox/Grid Settings: If you are using Flexbox or Grid for layout, ensure that you do not have properties like align-items or justify-content altering the size of the vertical slashes.

    4. Browser Dev Tools: Use your browser’s developer tools to inspect the size of both the horizontal and vertical slashes. This can help you pinpoint where the size difference is coming from.

    5. Code Snippet: If you can share a simplified version of your code, that would be helpful. This way, I can take a closer look and help identify any issues.

    6. Animation Properties: Check the animation properties specifically for the vertical slashes. Ensure they are consistent with the properties applied to the horizontal slashes.

    Try these suggestions and let me know if you find anything or if you need further assistance!

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: