How do I Fix my Solids Collision Detection?

0 favourites
  • 5 posts
From the Asset Store
Detects any kind of ad blocker. Very easy implementation into already existing projects
  • I can't find a tutorial anywhere for this. I am making a top-down game, and every time I create a sprite and set it to solid, no matter what size or what I set the collision polygon too, the player character hits the solid well before it gets anywhere close. My goal is to make invisible walls that prevent players from running through water or houses. I've been at this for hours and don't know what I am doing wrong.

    For some reason when I make a sprite a solid its hitbox/Collison radius is huge, and idk how to fix it!

    Any help would be a lifesaver!

    I attached a video to skip through so you can see exactly what I am dealing with. https://youtu.be/AcAtNXgJD64

  • Maybe the player's collision mask is too big? Or there's some other solid object in that spot.

    I see you have playerControl sprite - run the game in debug view and check that too.

  • Hi. I think you created a small sprite and then you want to stretch it and use it to cover all the water objects on the map, but it gets distorted. That's the fault of a lot of guides on the internet that do that.

    - In the video when you did the last sprite size reduction you didn't show the collision mask, maybe there is a distortion.

    -Replace the sprite with a backglound tile and you can resize it without distortion.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can also in the editor enable collision mask view and see what's going on there.

  • dop2000 had the right answer! Thank you! The player sprite had the correct collision polygon, but the player CONTROL, did not. The play control collision polygon was about double.

    My problem is solved, thank you all again!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)