Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

105
Visualizações
Kaboom - Is there an equivalent of the grounded() attribute for touching a wall?

I'm trying to make it so that I can have a wall jump in my game, is there a way to check if an object is touching the side of another physics object similar to the .grounded() attribute?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Something like this might work:

player.collides(
  'wall', // That's a tag.
  () => {
    // When player collides with anything tagged wall
  }
);

Or if you want to manually check on each frame,

player.action(() => {
  if (player.isColliding(wall)) { // wall is a game object this time
    // When player collides with game object wall
  }
});
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda