In my project I have a platform-type sprite, and two player-type sprites. The idea is that a player collides with the platform and serves as a stop, but however the other sprite can cross it without problem.
Is there any option already created for these cases? Or would I have to program it? Thank you!
You’ll have to create events no matter how you do it. Either changing the sprite if you use 2 different sprite objects, or turning the platform character behaviour off if you are using 2 animations in one sprite object.
Sorry, I’m not understanding the issue. 2 Sprites, so have one with platform character behaviour and the other without. Or is there some further information missing?
Are both sprites player controlled? If so, is it just a small number of objects it can move through? In which case can you turn off platform behaviour on those objects?
My fault, I have two invisible columns on the sides with the “platform” behavior so that the player stops and does not get out.
On the right, other sprites (enemies) are created with the behavior of “platformer object”. They have to be able to cross the yellow columns without problem and fight the player. Like an endless runner.
I have no idea if it’s in the pipeline, but I know that currently you cannot do that with sprites. You can with physics objects, but physics behaviour and platform behaviour don’t mix.
Yes. If your only use for the pillars is to stop the player from passing beyond them, then I’d use this approach.