Page 1 of 1

Progressive Technique

PostPosted: Sat Dec 08, 2007 6:38 pm
by Azou
Hello.I've got a question:how can i make some unlockables techniques?For example,at the begining of the game,we have 2 techniques.At the middle,we unlock another skill.How can i do that,when we are at the begining of the game,we can't use the third skill? :( :?

Re: Progressive Technique

PostPosted: Sat Dec 08, 2007 6:39 pm
by Super Pieman
That's a good question. I am making a zelda game and throughout it you unlock sword skills. I think i might have an answer.
Have you tried making a variable called "Technique" and then go Create Actor>ScriptEditor> Technique=0;
Then once you get to the point where your technique is unlocked you say Technique=Teqnique+1;
Make the action so that they only work if Technique==1; or Technique==2; and so on.

Re: Progressive Technique

PostPosted: Sat Dec 08, 2007 6:52 pm
by Azou
Okay,thanx Super Pieman !! I'll try it :D

Re: Progressive Technique

PostPosted: Sat Dec 08, 2007 7:11 pm
by pyrometal
If you do not wish the abilities to be unlocked in a specific order, I advise you use one variable for every ability. If you know how to use arrays, then use that instead (less cluttered variable declarations). Use if() and swith/case statements to structure the rest of your game's mechanics.

That's all for now!

-- Pyrometal --

Re: Progressive Technique

PostPosted: Sat Dec 08, 2007 7:16 pm
by Azou
I don't use the arrays!So,i'll take the first advice :wink:

Re: Progressive Technique

PostPosted: Sat Dec 08, 2007 9:19 pm
by Fuzzy
You can eliminate a lot of code forking with if() if you use some of the advice in this post..
http://game-editor.com/forum/viewtopic. ... ilit=stick

Re: Progressive Technique

PostPosted: Sat Dec 08, 2007 10:19 pm
by Azou
Thanx Fuzzy!Today,you helped me 2 times :mrgreen: :D

Re: Progressive Technique

PostPosted: Tue Dec 11, 2007 8:53 am
by Bee-Ant
I have "POWER UP DEMO" search in Demos page :D