Posted: 25th Sep 2021 23:31
I need to set a solution up for a problem for animations.

if my player sprite is in the air his jump animation only plays, but when his feet are on something his animations change.

the problem is there is no checking for just collision for under the sprite.

or is there, I searched for hours.

anything is helpful.
Posted: 26th Sep 2021 1:48
if you're still using sprite physics (as in your other threads) you should let us know. responses will probably be based up whether you are or not.
Posted: 26th Sep 2021 2:18
Yes I am sorry

I am using sprite physics

I am making a side scroller for the first time, I have everything set perfect but my jump animation.
Posted: 26th Sep 2021 11:08
Checking for collision by group might help.
Posted: 26th Sep 2021 11:31
Loktofeit

I need when the player sprite lands on the enemy sprite that sprite is deleted/

But when I even touch the sprite it deletes.

I need if the feet of the sprite or under the sprite collision detection.
Posted: 26th Sep 2021 14:46
You could add a shape to the player feet and one to the enemy head and set them to a group, or what I would do is simply cast some rays down from the player feet about 5 px and at the collision if any of the rays hits the enemy then you jumped on its head else you die
Posted: 26th Sep 2021 23:05
PartTimeCoder, Yes, I think that casting rays is a good idea, Ill try and see what happens.

Thanks for the idea.