Page 1 of 1

questions from a newbie

PostPosted: Thu Apr 19, 2012 12:00 am
by dIlLiN
How do I do an animation of walking with left legs and right legs in front alternating?
How do I shoot diagonal?
How do I do animation of jumping along with gravitational effect?

Re: questions from a newbie

PostPosted: Thu Apr 19, 2012 12:33 am
by skydereign
dIlLiN wrote:How do I do an animation of walking with left legs and right legs in front alternating?

You create an image composed of multiple equal sized frames that show the animation.

dIlLiN wrote:How do I shoot diagonal?

All you need to do is make the bullet move in the direction you want. You can do it through angle, or xvelocity/yvelocity.
bullet -> Create Actor -> Script Editor
Code: Select all
angle=45;
directional_velocity=20;

or
Code: Select all
xvelocity=10;
yvelocity=10;

dIlLiN wrote:How do I do animation of jumping along with gravitational effect?

You can do this through animation effect, or you could just implement gravity.
player -> Draw Actor -> Script Editor
Code: Select all
yvelocity++;

That way when you jump, you set yvelocity equal to -15 or similar and the player will arc as if influenced by gravity.

Re: questions from a newbie

PostPosted: Thu Apr 19, 2012 12:55 am
by NightOfHorror
very useful for me later on. Well, hi my friend, glad you joined. :D