Inkscape.org
Beginners' Questions Removing from Bezier path
  1. #1
    Baldeeh Baldeeh @Baldeeh

    Greetings my name is Baldeeh, I am fairly new to Inkscape so I would like to apologise in advance for any dumb questions. 

    For a project I am trying to use an svg for game collision. I am trying to do this via the latest Inkscape version ( as of posting this is 1.3.2 ) on a Windows Laptop running on Windows 11. This is my first time using Inkscape. My original image is a png created from an original Aseprite file.

    For this project I am trying to draw which parts on a 2D image are supposed to be able to be walked on, and which parts are not.
    On the image below you can see that I am trying to delineate the space my character will be able to walk in via the create regular Bezier path but, due to the layout of my map, some parts that should not have been marked are now marked.

    https://imgur.com/a/AvVLLWj

    My question is if it is possible to "remove" this extra filled in space, so that some of my walls will not have no collision. The link below shows my original image, so you can have an idea on how the collision should normally be for my project.

    https://imgur.com/a/JVTzZvM

    I am looking forward to a reply, and I would like to thank you in advance for reading my first post.

  2. #2
    m1981 m1981 @m1981

    Hi Baldeeh,

    If I understood correctly, you try to trace a walkable area (in black upon your image) and you probably made it by tracing a single path from Bezier tool, and you want to remove the merged part between doors at the left side
    To dig a hole within a path, you can use boolean operation 'Difference' :

    1. Trace another path upon the first, give it the shape you want to remove to it.

    2. Select both paths the go to menu 'Path' > Difference (or shortcut Ctrl - ).

    Have fun !

  3. #3
    Baldeeh Baldeeh @Baldeeh

    Hi there m1981,

    That is exactly what I needed, and it fixed my problem! Thank you a lot!
    I realize now that it is quite the easy shortcut to find, so apologies for making a whole post about it haha.