Log In  
Follow
scrimpy

Cart #feyazidigi-0 | 2022-05-27 | Code ▽ | Embed ▽ | No License


I followed a tutorial on collision and cant figure out what's going wrong. its also making another player sprite when I go to the top left of the screen. I'm pretty new to coding and just want to find a not too complicated collision system. any help would be appreciated, thanks.

wall=0

function is_tile(tile_type,x,y)
	tile=mget(x,y)
	has_flag=fget(tile,tile_type)
	return has_flag
end

function can_move(x,y)
	return not is_tile(wall,x,y)
end
12 comments



I've been trying to import a tile set from Aesprite to Pico 8 and I cant seem to figure it out. The tile set is saved as a PNG and I put it in the Pico 8 carts folder. I tried importing it with the Import command and that wouldn't work. What might I be doing wrong? is there another way of doing this?

6 comments