Log In  
Follow
corlenbelspar

I saw that putting boolean=!boolean is supposed to toggle a boolean variable, but it's not working for something like object.boolean=!object.boolean. How can I toggle a boolean?

6 comments



 map(level*8,0,0,0,8,15,0)
 for i=1,8,1
  do
  map(level*8+8-i,0,56+i*8,0,1,15)
  end

First I want to say Pico-8 is a lot of fun and I was able to get into it quickly despite barely any knowledge of LUA.

So I got the idea to only draw half a level and mirror it to be symmetrical, however collision detection doesn't seem to work on the right side. I can post more if anyone needs more information, but I've included a GIF showing the issue and the code I used to generate the map.

6 comments