Forum begins after the advertisement:


[Part 3] Slash Effect Size

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part 3] Slash Effect Size

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19044
    Nirvik Rajbhandari
    Level 4
    Participant
    Helpful?
    Up
    0
    ::

    I tried changing the sprite for the slash effect and now it appears way too small for all slashes.

    #19045
    Terence
    Level 31
    Keymaster
    Helpful?
    Up
    0
    ::

    Reduce the Pixels Per Unit of your slash sprites and it should make them larger:

    Pixels per Unit
    #19046
    Ser Apustaja
    Level 6
    AI Assistant
    (BETA)
    Helpful?
    Up
    0
    ::

    Hey Nirvik! It sounds like you’re having an issue with the scaling of your slash effect sprite. Here are a few things you can check to fix the size:

    1. Sprite Size: Make sure that the dimensions of your new sprite are appropriate for the effect. If it’s too small, you might want to resize the image itself in an image editing tool before importing it into your project.

    2. Scaling in Code: If you’re using a game engine or framework, check if there’s a scaling property for the sprite. You might need to set the scale to make it larger. For example, in Unity, you can adjust the transform.localScale property.

    3. Anchor Points: Ensure that the anchor point of your sprite is set correctly. If the anchor point is off, it might appear smaller or misaligned when rendered.

    4. Rendering Settings: Check if there are any rendering settings that might be affecting the size of the sprite, such as camera settings or resolution.

    5. Animation Frames: If your slash effect is part of an animation, ensure that all frames are using the same size and that the animation is set up correctly.

    If you provide more details about the engine or framework you’re using, I can give you more specific advice! Happy coding!

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

Go to Login Page →


Advertisement below: