Is it possible to create a hitbox path from an image?
Posted: Wed Mar 18, 2020 12:12 am
Hello!
I'm working in a little project and it works basically like a very simple 2d top-down racing game.
In a racing game you have the circuit to follow. With my basic knowledge of hitboxes, I can only think about making the circuit as a flat image, and fill it with circles and boxes of hitbox. Now, this seems rather annoying and timing consuming. There is a better way to do it? I want to basic take a black-white image like that (But of course, with more complex circuits than this):
And make that the white is path to be followed and the black is the hitbox that the objects would interact as a wall.
I'm working in a little project and it works basically like a very simple 2d top-down racing game.
In a racing game you have the circuit to follow. With my basic knowledge of hitboxes, I can only think about making the circuit as a flat image, and fill it with circles and boxes of hitbox. Now, this seems rather annoying and timing consuming. There is a better way to do it? I want to basic take a black-white image like that (But of course, with more complex circuits than this):
And make that the white is path to be followed and the black is the hitbox that the objects would interact as a wall.