I've run into a problem with my game design, I need a block which is solid for only certain characters. So one character can jump on it, whilst the other character can just go through it.
I partly did this by just disabling/enabling the solid property of the block using detectors on the characters, however this doesn't work very well if both characters collide with the block.
Can anybody think of a better way of doing this? A bit stumped myself!
There is an option for this in the physics behaviour, although it seemed pretty buggy when I tried it a few months ago. Seems fine now though, will that do the trick?
Made a quick test:Solid_OnlyCertainChars.capx
Develop games in your browser. Powerful, performant & highly capable.
Thanks =) Unfortunately my characters are set up to use platform behaviour and, after a quick test, physics and platforms behaviour do not play well together! Shame though, as that's the exact sort of behaviour I need, just for platform =/
Any other suggestions?
I actually don't think there is any way to do this at the moment.
Hmm, that's what I fear!
I had the same problem, have no idea how to get rid of that. A function like "Stop Collision with Solid" for Platform behavior is cool.
Hmm, sounds like yet another thing to add to Ashley 's ever growing to-do list =P Would be a nice feature to have though!
You can duplicate the level without certain blocks offscreen. Also duplicate the player that you want to be able to move through the blocks. Disable the platform behavior for the player in the original level and enable the platform behavior for the duplicate. Then position the original from the duplicate.
That's a pretty clever way of doing it, never occured to me! Thanks, I'll give it a shot =)