A question

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

A question

Postby Azou » Mon Dec 10, 2007 10:27 pm

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:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: A question

Postby Bee-Ant » Tue Dec 11, 2007 8:44 am

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
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: A question

Postby Azou » Wed Dec 12, 2007 7:28 am

Thanx, Bee-Ant!!1point :mrgreen:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: A question

Postby Bee-Ant » Wed Dec 12, 2007 10:13 am

TQ :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest