Since you are doing a top down in DnD, try this for your collisions.Can sombody please help me?
Can you maybe help me explain what it does and how to do it?I generally recommend programming collisions and any interactions that happen as a result of them manually to have full control over what happens when you collide, not touching solidity. That's a black box that takes control away from you.
You may also want to take a different approach than the one solidity uses, which is resetting a colliding instance's position to its previous coordinates if it is involved in a Collision event with a solid instance. A better approach would be to not allow moving into anything you consider "solid" (but is not actually marked as solid) in the first place.
resetting a colliding instance's position to its previous coordinates if it is involved in a Collision event with a solid instance.
@Mr.Fox I guess you never watched the link I supplied, as that is EXACTLY the method the video uses.Can you maybe help me explain what it does and how to do it?
It makes it so you don't move into instances you don't want to move into.Can you maybe help me explain what it does and how to do it?
@TsukaYuriko You might of misunderstood. The quoting of you was in no way directed at yourself, I listed your quote as it was what the OP was referring to. My comment was for him only, I have full respect for you and your answers, so sorry if you thought it was directed at your post. I've added his name to my post to avoid any confusion.The part of my post that you quoted is also EXACTLY what I suggested NOT to do. I can't check what the linked video is about because YouTube's video servers seem to be down as of writing, so this may or may not be what it's actually about.
Oh no, gosh, I once tried setting up an easy tutorial of collisions using that method, and was not happy with the results. It's a checkbox that should be removed as it provides nothing but confusion for new users IMHO.the video is about how to program collisions using solid
Thanks this worked, but when i wanted to change the sprite it could just walk trough again, and when i press a and w at the same time my character kinda bounces or something. Can you maybe help me fix this?Since you are doing a top down in DnD, try this for your collisions.
That didn't work for meIn your player object, set the collision mask to be one of your sprites, like the idle sprite, if you have one. That will ensure the collision mask never changes when changing sprites, which I think might be your issue.