STD 2D platform game- Following a hills heigt?

BlitzMax Forums/BlitzMax Beginners Area/STD 2D platform game- Following a hills heigt?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I think you use a 2 color mask for your collision layer.

Then convert it to a pixmap, read each pixel and save true or false to an array.
Now you only need to check for the highest position in that array, what is a lot faster than reading a pixmap or doing a collide image.