First of all I researched for a black heart-it represent the main obstacle which the main character has to avoid it. I also find a puddle which adjusted it in photoshop and converted when in png ,being suitable for GameSalad.
The black heart and the puddle have the same attributes as the red heart ,only some of the attributes and rules needed to be modified.Therefore I copied the red heart.Then I changed the name, the image and then modified the attributes. For the black heart I have created a new score which is linked to the health bar.So,when the boy collides with a black heart,the health bar is getting smaller.For health bar I created an integer game attribute which help me to create the rule when the boy collides 5 times with black heart is chancing to the scene :Game over. The game is over when the boy collides with the puddle.The boy does not need to touch the puddle because he loses the game as well.
The black heart and the puddles was not difficult to create them because their attributes are similar to the red hearts.I just doubled the actor'' red heart'' and then changed some attributes and in the case of black heart I created an attribute that is linked to the health bar- so when the boy collides 5 times with the black heart,the game is over and it is changing to the next scene, named ''Game Over''.
Below are attached the rules that I have created for the health bar:

Below I attached an image of the scene Game Over and how does it looks.
I used different effects from photoshop to create a dramatic effect. For creating the buttons ''try again'' and the displayed text '' Game Over'' I used a website where I chose the design and then put them in the game as actors.
The video below shows how well does the health bar works and also how the boy interacts within the obstacles:the puddle and the black heart.
Now, I am confident in creating the health bar and also in creating new obstacles. I realised that the health bar is a very important element of a game. The actor and the actual game is playing around it.
Very important elements of a game represent the obstacles. Basically if your created content does not include obstacles-you can not say that it is a game.
Creating obstacles and make the main character interacts with them is a big step in developing a game.
No comments:
Post a Comment