Game Development Community

Having Diffculity Level, Different Stages.

by NengTat · in General Game Discussion · 01/29/2010 (9:40 am) · 5 replies

Hi Guys, i need help on suggesting on how to i work on my project.

On loading the game there will be 3 difficulty level for the user to choose, any idea how do i do that like setting each button or smth to load the diff mission.


And there will be 3 stages for each difficulty level too, and upon finishing level 1, i will have a portal leading it to level 2 , need help on scripting tis part as well.

About the author

Recent Threads


#1
01/29/2010 (8:34 pm)
Thats simple.

Make a menu gui that has 3 buttons. Each button is mapped to a different .mis

As for going from one mis to another, just need to name your mis files 1,2,3, etc.. and cycleGame() will take care of the rest.
If you are using tge, look in "game/server/scripts/game.cs" to find the end game and cycle game functions.
#2
01/30/2010 (3:56 am)
thanks for the info, i having another trouble now, how to i set my left click mouse to trigger a function which i created, a attack function with attack animation.
#3
01/31/2010 (12:07 am)
Check out "client/scripts/default_bind.cs" for your answer. :-)
#4
01/31/2010 (12:08 am)
yeah i checked that out but i dun understand the function in triggering
#5
01/31/2010 (10:59 am)
moveMap.bind( mouse, button0, mouseFire ); // Fires off funtion "mouseFire" using the Left mouse button.

moveMap.bind( mouse, button1, altTrigger ); // Fires off funtion "altTrigger" using the Right mouse button.

So, how to use this info?

You already have an attack animation, (acording to your post) so to use it using the left mouse button, you would change the moveMap binding to read: (assuming your function is named "attack")

moveMap.bind( mouse, button0, attack );
Its that simple.