#muon animation
1 messages · Page 1 of 1 (latest)
which gameobject is that script on
Muon Gameobjects
okay and are you looking for a muon to collide with a player?
yeah
and does your player have the "Player" tag?
it worked before, but after putting Muon Interaction it's not working
yeah
debug.log the tag of the collision and tell me what it's logging
it is debuggin the name
what's the name
Debug.Log(collision.CompareTag("Player"));
like here
I said to log the tag itself
tell me what the tag is
if it's not "Player" then what is it
"Player"
okay no because you just said it was false
the video shows it's false
the tag clearly is not "Player"
the tag is "Player"
is that the tag it's CompareTag'ing?
under OnTriggerEnter2D
put
Debug.Log(collision.tag);
ok
"collision.CompareTag("Player") || CompareTag("Player 2")"
first of all the second comparison is not on the player
which debug.log is that?!
the same one
the previous one was a boolean
that's a string
so you changed something
okay so there's your issue?
whatever you're colliding with has no tag
show me the inspector on your player object
change the debug.log to
Debug.Log(collision.name);
also those errors aren't looking great 💀
don't mind the nullreference one, this one just appearing out of nowhere
fine, change the debug and report back
so... clearly you're not colliding with the player's collider, but the "GroundAttack" collider
what is GroundAttack?
it is a groundpound
does your "Player 1" object even have a collider?
yes
try disabling the collider on the groundattack and see if a collision between the player and the muon is being detected
they are being detected now, the muon are doing the animation
okay so groundattack is overriding your player collision detection
see how we found your issue by debugging?
yeah, then i won't be able to use the groundpound if i remove it
the solution is not to remove the groundpound
the solution is to figure out why it's overriding the other collision
or just make the groundattack trigger the animation too
i will try tomorrow, imma sleep now
ok lol