sliding?

You must understand the Game Editor concepts, before post here.

sliding?

Postby smallville » Sat Nov 22, 2008 12:27 am

how do i make sliding? so that on the key up event the player will slide a bit according to the velocity of
the running, dashing, attacking or jumping?
ReDgame 2009
current projects:
S.W.A.T: a shooter/ freeroamer (sort of) with a unique story and a TWIST
User avatar
smallville
 
Posts: 54
Joined: Mon May 05, 2008 9:05 am
Location: Location: Location: Location: location: Loca....
Score: 3 Give a positive score

Re: sliding?

Postby skydereign » Sat Nov 22, 2008 7:22 am

One way of doing this, if I understand what you are asking, is to; On keydown event, set the xvelocity to whatever you want, and in the draw actor script, have it decelerate: if (xvelocity>=20){xvelocity-=5;}....else if (xvelocity>=1){xvelocity-=.1;} Setting up all the intermediates that you need.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: sliding?

Postby Kalladdolf » Thu Jan 15, 2009 8:07 pm

Make sure you have set the right physical response values, otherwise your actor will just stick to the ground.
(All four values one; Mass: specify, assuming that you use the PhysicalResponse action at all, that is.)
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest