Search found 5 matches
- Mon Mar 20, 2023 1:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: Leveling System in Tetris Clone Not Working
- Replies: 6
- Views: 496
Re: Leveling System in Tetris Clone Not Working
Good day! This is the last time I will be posting on here, as I have officially solved my problem. For anyone curious, this is what I did: def stats_update(self, line): self.lines += line self.lines_counter += line if self.lines_counter >= 5 and self.level == 2: self.level += 1 self.lines_counter -=...
- Mon Mar 20, 2023 12:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: Leveling System in Tetris Clone Not Working
- Replies: 6
- Views: 496
Re: Leveling System in Tetris Clone Not Working
Hello, once again all! I have almost solved my problem, however a new one has arisen. I have it to where it not only checks how many lines I have cleared but what level I'm at, like this: def stats_update(self, line): self.lines += line self.lines_counter += line if self.lines_counter >= 3 and self....
- Sun Mar 19, 2023 9:52 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Leveling System in Tetris Clone Not Working
- Replies: 6
- Views: 496
Re: Leveling System in Tetris Clone Not Working
I mean, a) I can't tell what your code actually is without indentation (please use the [ code ] function), and b) your check is elif self.stageclear2 , not if , so if it's on the same level as if self.end it wouldn't run and if it's indented should throw an error. Sorry!! ^^; I thought I was using ...
- Sat Mar 18, 2023 3:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: Leveling System in Tetris Clone Not Working
- Replies: 6
- Views: 496
Re: Leveling System in Tetris Clone Not Working
Just change the order so it checks for the last level first - e.g., if self.stageclear2: # do stuff elif self.stageclear: # do stuff Unfortunately, this doesn't seem to be working :[ here's the updated code: def end_checker(self): if self.point >= 300: self.stageclear2 = True elif self.point >= 100...
- Fri Mar 17, 2023 6:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Leveling System in Tetris Clone Not Working
- Replies: 6
- Views: 496
Leveling System in Tetris Clone Not Working
Hello all! I'm finally biting the bullet and asking for help on a little issue I can't seem to fix. I'm making a tetris game with story; so basically you play a level of tetris and when you win, an event plays. The code I currently have just almost works, but when you finish level 2, it loops the sc...