totally the black parade

by music<3
See Code Download Embed
Day 1. I added sprites and one background.

Day 2. I added costumes, more backgrounds.

Day 3. I added ground area to background 1, I am trying to incorporate sprites that will move up and down for the hero to jump on.
I was able to add the moving sprites, they're a little buggy but I want to script the basic idea before debugging. I added a gravity system. I scripted switching from the first background to the second, but I can't figure out how to remove the moving sprites once the backgrounds switch. I have made multiple attempts using different methods but I haven't been able to figure it out yet.

Day 4. I was able to figure out the issue with the moving sprites not disappearing. I added broadcast blocks for each background. I added a moving enemy, and as of right now, it's programmed to move back and forth on its platform. I'm debating on leaving it like that or making it slowly glide towards the hero after they're above the enemy's platform. I'm haven't implemented a full life system yet, but I'm working on having the moving enemy remove a life on contact with the hero. I can't figure out the right code so it isn't going that well. I'm trying out a few different methods. I just realized I completely forgot about powerups. I think I'm going to add those closer to the end, after I finish making the platforms, enemies, and fully completing the life system. I also need to add an end screen for when the hero runs out of lives, and a final completion screen for when the hero beats the game. I'm having an issue where the sprite move freely through platforms, instead of on top of them. Also, on the first scene (background) with moving platforms, the sprite falls through them when the platform reaches its lowest position. I'll have to work on that after I add the other things. I'm having an issue with the lives for the moving enemy-- when it touches the hero, it depletes not just one life, but multiple at a time. I fixed that. Now, my issue is that it only depletes one life in general, so if the hero touches the enemy multiple times, say, twice, they only lose one life.

Day 5. I fixed the falling through moving sprite issue with Mr. Grunin's help.

Day 6. I changed the third background, and added platforms to it. I'm starting to work on the stationary enemy.

Day 7. I added a life system for falling (using a custom block) and the moving enemy. I changed the third background again because the platforms weren't working. I made it so that the game ends when the lives are zero and so that the sprites disappear.  I scripted the stationary enemy, so now when the hero touches it they die. Also, I added a block above the enemy because I realized it was too far of a jump for the hero to make (it's still possible for the hero to fall into the enemy's pit, I made the platform relatively thin). I fixed the sprite being able to move after its lives hit 0.
Things left to do: 
-Powerups (not started)
-End screen (in progress)
-Death screen ✓
-Start screen ✓
-Make hero not go through walls (not started)
-Add comments that explain what each section of code does (not started)
-Change all the sprite costumes (not started)
I added start screen and a start button sprite, so that when you click start the first level and all the proper sprites appear. I made it so that the other sprites hide when the start screen is displayed. Made the stationary enemy a bit smaller and the platform a bit higher because there was an issue with the character losing a life because the enemy was too loud and stuck out of its designated area. I made it so the life variable disappears at the start screen and shows up for the actual game. There's technically an end screen in place, and lives disappear when the sprite reaches that screen, but I don't have any messages on it or anything. Same for a death screen, except for that I have to fix the lives (debating on either making lives show at zero which I'll probably end up doing or just make them disappear). I'm unsure of if I *need* to show a frozen screen after the hero loses all its lives, or if I can just go right to an end screen. I'm thinking maybe I'll just make it wait half a second to solve that problem. I added a death screen, and extra sprites as additions for the screen. It took a while because I had to figure out all the cropping and the editing, and then the code got all tangled up because of me changing background pictures. I realized there was an issue with the hero waiting a little bit before changing to the end screen.I don't understand why, but for some reason it just kept spamming all the codes that had to do with switching hit it again. Powerup 1 was added, I had a bit of trouble with the code at first but I fixed it by using a custom block. I'll just need to work on the second powerup and then I'm done for the day. I tried to set up a second power, but now only does it feel useless and too easy to get because I have no place for it, but now it's messing up the code for the first powerup, so when the hero touches the first one it gains multiple lives and it doesn't disappear. The second one does nothing when touched. This keeps happening with different actions for different parts of the code, I don't understand what I'm doing wrong. I finally figured out the issue with the second powerup by giving it a completely different and outrageous purpose-- getting rid of the stationary enemy. Not that that enemy does much anyways. But of course, when the hero reaches the end screen it switches to the death screen after a few seconds. I found the issue, I had it so that when it switches to the end screen, the lives are set to zero, which triggered the death screen. I fixed it by changing that to a hide variable lives block. Tomorrow, I'm going to finish the project by fixing the character's ability to walk through walls and possibly changing the characters and, even less likely, the backgrounds.

Day 8. I'm struggling very much. No matter what I do, I cannot figure out the wall moving. I don't know how to do it with custom blocks, I don't know how to do it with variables, so that leaves me with nothing. I tried to change the bottom color of the platforms so that the hero would just fall if it was touching that color, since the very bad gravity system that I have right now is color based. However, the hero still falls through one of the platforms even when the code says it shouldn't fall when touching that color. On top of that, it makes the already very very horribly designed project look even worse visually. After over half an hour of attempting, which included making new control blocks and variables, both of which failed, I figured it out. The issue was with the background, since gravity was color-based. The color that enabled the hero to fall was white, and a patch of the background was white. However, I can't really color over the background and make it look normal. I fixed it by changing the color of the unsafe part of the platform and changed the falling color to that. I have to add the falling system to the other levels now. That took another while, I'm having so many issues and it doesn't help that old issue that I've fixed a million times keep popping back up. I added the fall system to the other levels. Now, for some reason the end screen switches to the death screen *again*, so I have to deal with that. Nevermind, it stopped???? I think the actual code is finished. Now, all I have left to do is try to import a song in and to fix the sprites and end screen. Possibly the death screen.

Day 9: I'm going to change the costumes of the sprites if I can, then change their names, then, if time permits, I'll add music. I procrastinated and that's going to lead to me getting a lower grade, that's my fault, so I'm doing what I can now. I changed the costumes for the hero and the moving enemy, they're not much better though. They just hopefully fit into the theme a bit better. I renamed all the sprites. I tried to add music, it works under the sound section, but not in the script section. It might just be because I'm on a Mac, I'll have to try on another computer tomorrow. Also, tomorrow I need to add descriptive comments to my script and I'll be done.

Day 10. Just finished up basically, added explanatory comments and something to make the end screen less boring. Changed the platforms on levels 2 and 3, now they're all black. This unfortunately allows wall walking, but otherwise the character would fall for no reason and lose a life. Added more comments, they're really plain and basic. They're very uneeded, most of the code is self explanatory.

Created December 31, 2021

Last updated January 13, 2022

Published January 13, 2022