Monday, 21 November 2016

Game Development Week 3


In this week I created the platforms.Here I found difficult what I planned to do.I wanted that when the boy is colliding with the platform, the background is making a pause.I asked teacher how I can do it and he explained that  I should Create a global attribute called pause background and make it a boolean then inside the bg actor, rule: attribute game.pausebg = true, move backwards speed needs to be 0, otherwise move backwards needs to be 50 .After that go to my main character actor and set a rule: when actor collides with platform, constrain attribute game.pausebg to true otherwise constrain attribute game.pausebg false.I followed and did how he said but then I realised that I want not just the background stopping when the boy is colliding with the platform but also the hearts,the platforms and also the following obstacles.

I have solved this problem,by trying different methods and thinking logically.Below are attached the rules that I used  for platforms when collides with the boy.
 I need this rule for my game it because my background is always scrolling and when the platform is colliding with the boy the background is scrolling and there are different problems.Now the background is making a pause when the boy collides with the platform. The boy also interact with the platform very well and I am happy with the way that I have done it.

Stopping the background when the main character collides with the platforms creates a nice effect when playing. It also show how the actor is interacting with the platform.

There are the coding that I used for stopping the background:


Below is attached of video of how the boy collides with the platforms and also how the background is making a pause when the boy collides with the platform.



In this weak I learned how to create new rules for example stopping the background when the main character collides with the platform.I realised that experimenting and combined different behaviors, but firstly thinking logically will help you to reach the suitable rule for your game.
The next step consists of  creating  the health bar and also the black hearts. I also want to create the puddles,so when the boy collides just one time with it,the game is over.

Monday, 14 November 2016

Game development Week 2

In my second week of making the game I have made my main character jumping.
First of all I added the gravitation in the game and followed the sonic game and how I made sonic jump.I applied the same rules for my boy character.In that moment I met a problem,I was not happy how the character is jumping and ask for teacher how I could do it better.He explained that I have to do different from sonic.In sonic I used the change attribute rule while in my own game I created a new attribute-jumping and created a rule which says that then the up keyboard is down it will change attribute linear velocity y to 850 and in the same time it will constrain an attribute self.jumping to true otherwise the change attribute self.jumping is false. And also for jump rule I have made a new rule which changes the image when the character jumps.
I think that now the character is jumping very well.
I attached below he coding that I used for my main character when jumps:


The second thing that I made in game was creating the 'hearts' that the boy will collect.I researched an animated red heart, converted in png and applied in the game. At this point I have created a new rule -the score.That will display text in terms of how many hearts the boy is collecting.
For the heart I created a new attribute that counts and also when the boy collides with the heart ,it is  is destroyed. The hearts appear in the scene randomly.I am pleased with the way I have created the hearts .

I did not find any difficulties when creating the coding for the score and the actor''red heart':

1.My first rule consist of the actually animation that is going to be displayed in the scene.
2.The second rule represents the movement of the heart and its role in the game.For this rule I used the y and x position.
3.I used the spawn behavior, the actor is spawning randomly-for that I applied the timer.
4.Next rule represents interacting with the main character.It is playing a sound and it is destroyed when is colliding with ''boy''.
5.The last rule consists of the score. The counter is working and is counting the number of hearts that the boy is collecting.So, when the score is 10=the scene is changing to the next one.




Bellow is attached a video of how the boy is collecting the hearts and how well does the score works:





Now, I am confident in trying different rules,For example how I tried with the jump rule. I know that one rule can be made in different ways. I also improved my Photoshop Skills-I designed the animated red heart in it and also converted it in png.

For my next weak I am planning to create platforms and different obstacles.



Monday, 7 November 2016

Game Development Week 1

The first week of my game ''Adventurous Date'' consisted of creating the scrolling background.The scrolling background will help my game be more vibrant and alive.
For  the scrolling background  I created the main scene,which is level one  and an actor named background.For this actor I added the behavior move and changed the direction 180-means that the actor will move to the left.The next step was creating a new attribute (boolean) scroll.Then this attribute helped me to create a new rule which says that when the attribute is false and the x position is getting less or equal to half of the image ,there will be spawn an actor-the background at the back of the layer.The rule worked perfect but I had a problem with the image of the background because when another image was spawned there was like a barrier, it wasn't nice when viewing.
The picture below represent my first background and then my actual background.


I get over this problem by creating another background with  few same elements.
Now the background matches perfectly. My background consists of a street. The elements of the background are colourful because I wanted it be suitable for my target audience. I also added some sound for the background, so when the player will play level one -a sound will be played.

Below I attached the coding that I used for the scrolling background:



After creating the scrolling background, I researched for my main character-a boy.
I was researching it in the past, but it was not animated.So, I found an animated boy walking.
I adjusted the character,cut it and converted in png image.


In this week I have learnt how important is the background for a game.It created me a satisfaction when I saw that from the second try it works well . I also improved my photoshop skills creating the boy and also the background.

Creating the boy I found the picture below and then adjusted it properly.

Below is a short video from my first week development.Namely how the background matches perfectly and how the animated boy works.