Page 1 of 1

Power

PostPosted: Sat Nov 10, 2007 6:53 pm
by Azou
Hi everyone!! Well,i wanted to ask a question:how to make a power goes left or right?? I wanna mean,for example,if you push keypad 8,a fire ball will appear and goes on left and right?? :D

Re: Power

PostPosted: Mon Nov 12, 2007 8:25 pm
by Troodon
What do you mean?
I mean that what do you mean when you say "I mean that.."?

You mean a bar that shows the power of for example golf shot? So that player can select it?

Re: Power

PostPosted: Sun Nov 18, 2007 6:45 pm
by Azou
No,sorry th is is my bad english! I wanted to mean how to make a kamehameha? :D :D

Re: Power

PostPosted: Mon Nov 19, 2007 6:37 pm
by Troodon
The first king of Hawaii?

Or some kind of fantasy force?
http://www.zmms.tu-berlin.de/modys/team ... hameha.jpg

Re: Power

PostPosted: Thu Nov 22, 2007 8:29 pm
by Azou
That is it! :D :D

Re: Power

PostPosted: Thu Nov 22, 2007 8:34 pm
by Troodon
Well, what kind of things you would like to do with it in your game?
Generate near your hands and then throw?
Or some flash light attacks?
Can't you do all of them with big enough animations? :D

Re: Power

PostPosted: Sat Nov 24, 2007 12:11 pm
by Azou
tekdino wrote:Well, what kind of things you would like to do with it in your game?
Generate near your hands and then throw?
Or some flash light attacks?
Can't you do all of them with big enough animations? :D


That's with hands.Abi*out animation,i've problem with the create/destroy actor actor events.For example i push down,the animation come,but it say here.Can you tell me how to repair this? :D

Re: Power

PostPosted: Sat Nov 24, 2007 12:35 pm
by j2graves
do you mean that the animation keeps on going and going without stopping?

Re: Power

PostPosted: Sat Nov 24, 2007 4:53 pm
by Troodon
If so you can use the -animation finish- condition.

Re: Power

PostPosted: Sun Nov 25, 2007 5:29 pm
by Azou
Maybe...i'll try it! Thanks!! :D

Re: Power

PostPosted: Thu Nov 29, 2007 5:40 pm
by Azou
Okay,Tekdino,it's working! :mrgreen: But,if it's a ball,how to make it goes right or left? :D

Re: Power

PostPosted: Thu Nov 29, 2007 8:04 pm
by Troodon
Make a variable called Direction.
Now, everytime you hit the walk-to-right key:
Direction = 1
and in walk-to-left key:
Direction = -1

Now, in the create actor of the ball:
if (Direction == 1) { xvelocity = 5} ;
if (Direction == -1) { yvelocity = -5} ;

:)

Re: Power

PostPosted: Thu Nov 29, 2007 9:02 pm
by Azou
Thanx,i gave you a point!! What's your email adress?? :mrgreen:

Re: Power

PostPosted: Fri Nov 30, 2007 12:01 pm
by Troodon
Easy to remember:
tekdino AT gmail.com

And thanks for the point! :D

Re: Power

PostPosted: Fri Nov 30, 2007 1:49 pm
by Azou
That was nothing :mrgreen: