This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey y'all. I'm working on a "falling block" style puzzle game, and having a bit of trouble.
I'm currently working on getting my blocks to switch columns on left/right button presses while the block is actively falling, but not once it has landed. Code that does work :
If btnp(➡️,self.player) and self.column>0 then self.column =1 If btnp(⬅️,self.player) and self.column<3 then self.column-=1
If I add "and self.active=1" it stops working. Is it not possible to use two and operators in one if/then statement? And if not, is there another way to achieve the same thing?
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/pico8/comme...