0 votes

Index p_bounce=-1 out of size (colliders.size()=0)

ese error me aparece cuando ejecuto la escena

Escribi este codigo para detectar cuando el personaje colisona debajo de una caja para que esta reprodusca una animación

var getcoll = getslidecollision (getslidecount () -1)
if get
coll! = nulo:
if getcoll.normal == Vector2 (0,1) y getcoll.collider.isingroup ("cajas"):
get_coll.collider.move ()

HOW CAN I SOLVE THAT

in Projects by (88 points)

1 Answer

+1 vote

Instead of creating the collisions via code, try and use the nodes as childs of the object (CollisonShapes) and then use signals to start the animations when there's objects colliding

by (37 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories