Platformer collab! :p

Hello! I’m making a platformer game! But, the only major thing I need help with, is collisions. I don’t know how to make an object not be able to go through another. I need help :confused:

7 Likes

When bumps object:
Set horizontal volcoty to 0?

I’m not very good with physics…

4 Likes

I’ll try that! Thanks.

3 Likes

That will bring it to an immediate stop, not bounce off the object

3 Likes

Yes. That will help with it.

2 Likes

@AlwaysMakingStuff you could always look at others collision code. I would recommend looking at Spy guy’s loop platformer’s code.

4 Likes

Alright. Will do.

3 Likes

Yup! (Sry I couldn’t really help, I’m bad at platformer collisions as well…)

3 Likes

Here is a project I made with collisions and background scroll

For a normal, non-scrolling game, just give the platforms the collisions code and give the character the movement code (notice that the moment code in the platforms is inverted)…

1 Like

Thank you!

1 Like

:man_facepalming: I meant movement.

1 Like

No problem…

Nice idea
I’d’ve joined if I were good at physics lol, sorry
(Tag me for big updates please)

2 Likes

But make sure to give credit

3 Likes

Yes. HUGE credits because I had no idea what I was doing : /

4 Likes

Does that mean that you solved the issue? Or - are you more doing like a collab like the topic hints, and want the topic to stay open for updates related to the game?

Just checking in to know if this topic should be closed or not! :slight_smile:

2 Likes

Yes, you may close this topic! I have an idea of what I’m doing, and I’m setting it up.

2 Likes

Just let us know if you need any more help then, or if you wish me to reopen this! There is always someone around here that can help you. Best of luck with your project!