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.
No comments:
Post a Comment