Customising my game

After learning a few basics on how to get around Stencyl, I've tried customising my own character. Here's how I did it :


First, I create my character, in this case it's an evil apple, where I named it "testingapple". I created it in several different layers because when I import it into Stencyl, the movement is done in frames by frames.


The first box of apple, is the first frame for the walk right animation. And the 2nd and 3rd, which will get it looping. 


I've created the 3 basic stats that I'm gonna test out. Idle, Left and Right. Currently I'm testing to make my character move from left to right and vice versa.

After that, I've created a 32x32 tile as a ground for my apple. (currently I have issues with the tile, I'll get back on this later)

Moving on, I got to the dashboard and set the controls :



This is the default control, since I only needed right and left, I removed the rest :


After that I set up the scene :


And now I have to code...but in puzzle form:



At first when I saw this, I don't really know how to use it, but after a little bit of analysing, it does look strangely familiar. And that's when I found out that I'm actually coding using puzzles. The shapes of the blocks, such as the blue one will only fit in the shape of the orange one. So it's like playing with a puzzle piece. 

And this is my apple's codes:


And after I hit "test game", it gave me an error, because I've forgotten to include one value which is 0 for x-speed.


Now it's working but I've forgotten to set the physics (gravity) for my scene, hence my apple floated in mid air:



I did a few trial and errors with the codes because at some point my apple didn't move left or right or keep moving right :



Stencyl also allows users to preview the codes, if you want to manually change the codes:




And here's my testing game (still finding solutions about the tile) :
My tile appeared smaller which I don't know why..I'm still finding the solution..


0 comments:

Post a Comment