0

Jumping and Stomping on Enemy Solved

As mentioned previously, I have problems keeping the onion to stay on the ground instead of falling off the screen. Well, actually I didn't manage to find the solution, I just deleted the onion character and re created it.


I've also added the collision points for both the characters:





Anyway, after the onion problem , I encountered the jumping problem for Bawang Putih. There is a code called "push self towards a value at a value of force"

So, I've tried it just to see what happens.


And Bawang Putih ended up flying straight up into the air like a rocket and she never came back down.

So, I googled for tutorials and I found this :


and for double jump:


But after trying the code, the jumping does not work. Whenever I pressed the up button, she doesn't jump at all or even move up.




And then I found another tutorial :


This one was really complicated. I think I might have missed out some code because it doesn't work.

I'll go back to my backup file and re analyse my code. But until then, I've resort to my last option by analysing the default's code.

Then I realise I might have created the wrong attribute. I'm not quite sure, but I'll check back on my old codes. 

Here's the list of attributes and what it is for :


And here is Bawang Putih jumping and stomping on onion. After the onion is stomped, it will disappear. It seems to disappear a little too fast, I'll try to fix that and add in Bawang Putih's jump mode.


     







0

Evil Onions to be stomped on.

Here's the digital sketch of the enemy :




And the coloured version :



Next, I'm going to make Bawang Putih jump on this enemy and make it disappear. 

But, the problem I'm facing now is that this onion keeps falling off the screen instead of standing on the platform like Bawang Putih. 

I'm still trying to solve this problem.


0

Solution found for Parallax Scrolling

Instead of typing the value like this ,



I typed the value to make it less than 1, without making it negative , 


And now my background moves slower than my foreground. But Bawang Putih still has problems with her movements.




0

Bawang Putih in Stencyl

I've added Bawang Putih into Stencyl for testing before I proceed to add other characters.



After puzzle coding her movements,


Sometimes she ends up stuck at certain part of the floor and whenever I released my keyboard key, the switching animation to "idle" would make her float up into the air. 

I haven't found the solution yet..



I've added this code so that the camera follows Bawang Putih :


The other problem I'm facing currently is to get the background to move slower than my foreground. Stencyl wouldn't allow me to put a negative value, and if it's a positive value, it will end up like this :



this is also known as parallax scrolling.



0

Bawang Putih coloured

Here's a gif of bawang putih coloured and running :



0

Test running animation for Bawang Putih

Here's a test animation of Bawang Putih running before I colour her in.


Partly she does look like she's punching someone and running.

0

Bawang Merah and her onion's sketch


I wanted her to be different from her stepsister, Bawang Putih, so I gave her curly hair since Bawang Putih has smooth wavy hair. And Bawang Merah's face is more pointy since Bawang Putih is rounder and chubbier. 

I've also simplified her hair more, by only giving her one ponytail.


And some sketches of her evil onions.

1

Character sketch for Bawang Putih

I did a few sketches for Bawang Putih (the protagonist) :


Initially I wanted her to have her hair tied up in a bun, but it makes her looks much older, so I gave her long wavy hair with flowers.

I let her wear kebaya because the setting of the game is in a malay village, near the forest. It is also because it's an old malay fairytale.


After thinking for a while on the animation part, I've decided to simplify the character more, by making her dress longer, so her legs are covered (only can be seen when she does jumping). 


For now, I think I will go for the last Bawang Putih, which is the one on the left of the fish.