Page 1 of 1

A question

PostPosted: Mon Dec 10, 2007 10:27 pm
by Azou
Hello!!Well,i wanted to ask a question:can i make some "effects" on my technics????For example,i make a variable called no gravity.And on the key down event for the technic,i put: if no gravity==1,yvelocity=0 Or if no gravity==,yvelocity=0?? :D Oh,i didn't respect the order because i know that i have to put () :twisted:

Re: A question

PostPosted: Tue Dec 11, 2007 8:44 am
by Bee-Ant
Ummm...you want to make your player stand in air when "no gravity" is active...and then fall down when the "no gravity" inactive, right???
Put it in draw actor...
if(no_gravity==0)
{
yvelocity+=1;
}
if(no_gravity==1)
{
yvelocity+=0;
}

And at the keydown "UP" repeated
no_gravity=1;
y-=3;
canjump=0;

Keydown "DOWN"
if(canjump==0)
{
no_gravity=0;
}

It should work... :D

Re: A question

PostPosted: Wed Dec 12, 2007 7:28 am
by Azou
Thanx, Bee-Ant!!1point :mrgreen:

Re: A question

PostPosted: Wed Dec 12, 2007 10:13 am
by Bee-Ant
TQ :D