Ok so here I have tried to put together a level that uses the pushing function that I was playing with previously.
The objective is to get the block from its starting point to the high platform at the top of the page. To add a little bit of a challenge I have added an enemy that patrols the middle section of the level. He will continuously move left and right. I decided to have him move like this as I felt it would pose more of a challenge rather than having him chase the player. If the player pushes the block into the middle section while the enemy is still there he will eat the block and the player will have to start over. To remove the enemy the player has to jump on its head. Once removed the player can push the block into the middle section where the block will land upon a platform which can be raised. The player must pull a switch that will activate the platform that will lift the block to the top of the page where the level can be completed.
Get the Flash Player to see this player.
When I tested this level it became clear that it was far too complex and there were too many factors that could go wrong when played on the pages of the sketch book.
Currently my code for detecting edges will only stop the character falling through from above. This means that it is possible to jump up through a platform if you are below it. It also means that the player is able to walk through a wall without being stopped. This makes the push block game very difficult to design a level around because if the block falls into a ditch it can be pushed through a wall without stopping. To get around this I created a number of hidden platforms inside of flash that the player won’t see but will stop the block from being pushed where it’s not supposed to go.
The trouble is that by setting up hidden walls in this way, it means that it is difficult for players to customize the levels as they cannot position the hidden walls themselves.
Unfortunately I have had to scrap this level and try to rework the box level idea so that it works better with the rest of the project.




