top of page
Search
jonathanluitjens

Platformer Progress - Map Collision, Outlining the Walking Space and Decoration Collisions of a Map

Hello again, another end of week means more progress.

And this time it's actually something more than visuals.. Not exactly coding directly, but more than visuals.


As we've all seen in my past posts, I've been working on a Map, now the most of it so far has been visuals since the map is a BIG sprite, but I got that done recently, which meant that making it function as it's made to was the goal.


This week was dedicated to making hit-boxes for the scenery like the trees, plateau, and crater to keep Moof from walking over them when he shouldn't, but also around the island in it's entirety so he also won't just walk out to sea.


I made black shapes to outline the areas of scenery and likewise, and gave them collisions and the "Solid" behavior, along with the Map Moof's own hitbox being around his feet, so he can be positioned in FRONT of these, just not IN them.


I have the collision boxes on their own layer, opacity set to 0%, and took my time placing these on each scenery bit that needed it along with outlining the whole island:

This is about the coverage being given, in a visual context, some exploration avalable, but also clear cutout lines to places like above the cliff,

a mix of limit for ease of building the map, and freedom to kind of explore around the trees and to the cliff itself.


The tree is separated into two specific objects: A bottom half being solid, but unlike the image, not outlined in black for the collision, this And a top half, a layer above the Moof which still needs coding applied to make it half transparent when Moof is behind it, but it works everywhere else but that.


The level markers have been pre-made,

No function yet, but I should have an idea using past projects like Snake or even Gran Trak for applying some of these features I've been missing for this.

Layout transition, opacity changing objects to prevent object obscurity, combining the efforts into this now to make something impressive.


That will be something I have to update about later down the line, as I keep working on it now, talk of that will come more in due time, so until then, that'll be all from me this week.

2 views0 comments

Comments


bottom of page