Progressive Technique

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

Progressive Technique

Postby Azou » Sat Dec 08, 2007 6:38 pm

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

Re: Progressive Technique

Postby Super Pieman » Sat Dec 08, 2007 6:39 pm

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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

Re: Progressive Technique

Postby Azou » Sat Dec 08, 2007 6:52 pm

Okay,thanx Super Pieman !! I'll try it :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Progressive Technique

Postby pyrometal » Sat Dec 08, 2007 7:11 pm

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 --
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Re: Progressive Technique

Postby Azou » Sat Dec 08, 2007 7:16 pm

I don't use the arrays!So,i'll take the first advice :wink:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Progressive Technique

Postby Fuzzy » Sat Dec 08, 2007 9:19 pm

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
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Progressive Technique

Postby Azou » Sat Dec 08, 2007 10:19 pm

Thanx Fuzzy!Today,you helped me 2 times :mrgreen: :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

Re: Progressive Technique

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

I have "POWER UP DEMO" search in Demos page :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