Firstly I decided to make an area that forces the player to jump from block to block.
Then I put down stars for motivation.
Next I decided to see if I could figure out how to add a danger obstacle. I was thinking I would add a bouncing ball to avoid. So first I had to add a physics engine, then draw a ball, then wright the code and this is the final product.
Now when the player touches the ball it disappears but instead of being destroyed I want it to go back to the start. To do this I deleted the destroy function and replaced it with a set position function.
Now this is what getting hit looks like.
Now I just need to spreed these all over.
Today I learned how to create an enemy block and how to make the character reappear. Tomorrow I will be finding a new tutorial to follow.
No comments:
Post a Comment