Hello all.
Below, I will provide a message that I wrote to the Blast Bay forum to ask for assistance. Reason? I know that the audiogames forum and the blast bay forum are good with responding to questions, and they are a very big help! Another thing, I think I'm going to steer away from actual programming for now, and stick with the BGT Toolkit. As others have said, Philip has made it so easy to add sound to our games. If I were to use another programming language like JAVA, it would probably take me longer! So I'm going to stick to BGT for building audiogames, and actual programming for building other types of applications! Anyway, here is the original message.
Hello all BGT forum members.
Another set of questions from Kaigoku! Thanks for all who have responded willingly and patiently. Now, I shower the willing and the patient with more! Here is what I want to do. If you've read my last post, you know that I've made a menu with five options. Start game, load a saved game, learn game sounds, test speakers, and exit game. I made a function for the main menu, and called it inside the main function. My main function got shorter! It only has the show_game_window and the call to the main_menu function. Anyway, I added a learn_game_sounds function to my main_menu function. So far, I'm good to go. But now, I'm having trouble strategizing what I'm going to do next. Oh yeah! I forgot to mention that I also added code to the exit choice so that it exits and the test speakers option to test speaker orientation. What I'm trying to do is to build a character and some enemies. Would a class be good for this? For example, if I want to build an enemy, I would do something similar to the following:
class enemey
{
void walk()
{
// Code for walking goes here.
}
void weapon()
{
// code for weapons goes here.
}
}
Then, when I want to create a enemy, I would declare a object variable like this:
enemy enemy;
Then, to make the enemy walk, I would do this:
enemy.walk();
So far, I think I'm doing good. The trouble that I'm having is that I don't know how to make my enemy walk! LOL
For example, I'll create a sound that will enable the enemy to walk every second. Then, I'll have it appear randomly. But I want the enemy to travel along the player while fireing his weapon. Player objective is to try to catch the enemy while still walking, and then pressing the space bar to hit him. Then, I want to be able to create a variable that will hold the players statistics about health, score, and whatever else I can think of.
Wow! This is too much for me to think about. But I'm determined to do it with some assistance, I hope.
My big question would be, can someone please help me strategize a way to do all these things without me having to stress a lot of thinking? Oh yeah. Forgot one thing. I also want to be able to walk forward, for example, and walk backward the same amount of steps and end up on the same direction from where I started when I chose to walk forward! Well, I do want to think about what I'm going to do, but can someone give me a good start on it? I would greatly appreciate it!
Thanks too all who help!
Pages 1