Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PICO-8: Top-Down Adventure Game Tutorial

A beginner-level tutorial for making a top-down adventure game in PICO-8. · By MBoffin (Dylan Bennett)

Winning and Losing - Can't win

A topic by MimoJimi created Apr 03, 2022 Views: 199 Replies: 3
Viewing posts 1 to 3
(1 edit)

Somehow the "You Win" message doesn't show when I enter the sprite with flag 7 (win)


(1 edit) (+1)

I see what I did wrong:

if (is_tile(win,p.x,p,y)

has to be:

if (is_tile(win,p.x,p.y)


Damn typo............ did a comma instead of a dot

Developer(+1)

Great work on finding the error. Those typos can be tricky, for sure! Also, for future, if you want a screenshot of ALL your code all at once, you can type...

export cartname.lua.png

...and it will make a PNG of all of your cart's code. (Putting the .lua.png at the end is important!) It's actually kind of cool to see it that way. :) Looks like this:


Ohhh, thanks a lot! will do that when needed ^_^