Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by TigerSheep

I have two things that I'm having a hell of a time figuring out, and help would be awesome.

First: I'd like to be able to push 'down' and fall through one-way platforms. But only one way platforms. Normal collisions tiles shouldn't be affected by this!

Second: My character can jump multiple times, and when he's jumping through one-way collision tiles and reverses direction he collides with an invisible wall. They seem to work perfectly as long as you don't switch direction.

Any help would be much appreciated!

1 decade ago by Joncom

1) Make a test map in Weltmeister and make the collision layer ALL one-way-down-tiles.

2) Open the map in a text editor and find out the id of a tile that is considered a one-way-down-tile.

3) Make a script that determines what tile you are currently over in the map.

4) Check backgroundMaps[0] for the tile just below your specific location.

5) If you're over a one-way tile and down is pressed, then manually shoved your entity down a few pixels.
Page 1 of 1
« first « previous next › last »