Let me explain things for you.
Posted: Thu May 28, 2009 4:10 am
Note
I might not be as good as DST at explaining things, but I am going to give this a try. I'm going to explain a little bit about the code. This is mainly for beginners who just started using GE, because I can't teach the pros anything yet.
When making a game
Always make sure your spelling and caps are right, because you don't wan't to set there and have a game with the character saying "how r u?", you want it to say "How are you?" It makes it look more professional. If you don't know how to spell a word, use google to spell check it for you.
Clean Code
I seem to use messy code myself, but if your having people work with you on a game, it's best to have good clean code, that way people can read it better. Also comment the code to tell what that area of code does. You don't wan't your code looking like this.
You would wan't it to look more like this.
You might not have seen much of a difference, but if your using allot of code or if your sharing files with someone else, it's always good to keep the code clean.
Actor Names
It's always good to have the names of the actors in a order that people can understand. When I first started Game Editor, I named my actors something really mixed up, such as "UNefuenfuenwsdgrrrgg" for example. You should have your actors names something like, say if your the player, name him player, or character, or something that resembles that actor.
I might not be as good as DST at explaining things, but I am going to give this a try. I'm going to explain a little bit about the code. This is mainly for beginners who just started using GE, because I can't teach the pros anything yet.
When making a game
Always make sure your spelling and caps are right, because you don't wan't to set there and have a game with the character saying "how r u?", you want it to say "How are you?" It makes it look more professional. If you don't know how to spell a word, use google to spell check it for you.
Clean Code
I seem to use messy code myself, but if your having people work with you on a game, it's best to have good clean code, that way people can read it better. Also comment the code to tell what that area of code does. You don't wan't your code looking like this.
- Code: Select all
if (mal == 1)
{
dostuff;
dostuff;
if (this == 1)
{
Myfunction = 1;
}
}
You would wan't it to look more like this.
- Code: Select all
if (mal=1 && this=0) // if the variable mal is equal to 1, and this is equal to 0.
{
dostuff; // Does this function.
dostuff; // Does this function.
}
else
{
Myfunction = 1; // Myfunction is equal to 1.
}
You might not have seen much of a difference, but if your using allot of code or if your sharing files with someone else, it's always good to keep the code clean.
Actor Names
It's always good to have the names of the actors in a order that people can understand. When I first started Game Editor, I named my actors something really mixed up, such as "UNefuenfuenwsdgrrrgg" for example. You should have your actors names something like, say if your the player, name him player, or character, or something that resembles that actor.