Tutorial: Flying Kick
Posted: Mon Sep 20, 2010 4:31 am
Huh....................... This a Turoial making Flying Kick
(Newbies need read the end of topic)
1.Make Player Actor (Newbies)
2.Add some sprite and code for player (More Detail click Help => Demo Making Of => Flatformer Game(In GE)) (Newbies)
3.Use this code (Newbies and another need help)
Player -> Key Down (Your attack key) -> Script Editor
4.Please use all of that code first before add flying kick code (Newbies)
First, Player => Key Down (Jump key) => Script Editor
Click Variables -> Add Variables -> name "canjump"
Use this code
Then Collision - Top side of Tiles - Script Editor
More Detail view Tutorial: Making Jump, Double Jump, More Jump
(Newbies need read the end of topic)
1.Make Player Actor (Newbies)
2.Add some sprite and code for player (More Detail click Help => Demo Making Of => Flatformer Game(In GE)) (Newbies)
3.Use this code (Newbies and another need help)
Player -> Key Down (Your attack key) -> Script Editor
- Code: Select all
if(canjump==0)
{
ChangeAnimation("Event Actor", "(Your Kick Sprite)", FORWARD);
yvelocity=+20;
xvelocity=+12;
}
4.Please use all of that code first before add flying kick code (Newbies)
First, Player => Key Down (Jump key) => Script Editor
Click Variables -> Add Variables -> name "canjump"
Use this code
- Code: Select all
if(canjump==1)
{
yvelocity=-12;
canjump=0;
ChangeAnimation("Event Actor", "JumpSprite", FORWARD);}
Then Collision - Top side of Tiles - Script Editor
- Code: Select all
canjump==1;
More Detail view Tutorial: Making Jump, Double Jump, More Jump