PICO-8: Movement with Map Collision

Add to
My games
Add to
Wishlist
Save to
Collection
No reviews
Exceptional
Meh
Skip

About

Pixel Movement with Map Collision

This cart demonstrates how to have simple pixel movement that can use the map to block movement. It is heavily commented so you can pull apart how this is being achieved.

Notes: Sprites that you want to be blocking tiles (meaning the player can't walk through them), should have the first sprite flag turned on.

The basic idea is that when the player tries to move, we first check the new location they are trying to move to in both the left/right and up/down directions. If that position has a map tile with a sprite flag of 1 under it, we ignore player movement in that direction.

Platforms
Release date
Developer
MBoffin
Age rating
Not rated

System requirements for Web

Read more...
Edit the game info
Last Modified: May 11, 2020

Where to buy

itch.io