Hello and welcome to our community! Is this your first visit?
Register
Results 1 to 4 of 4
  1. #1
    Japanologist Wilio's Avatar

    Join Date
    Dec 2005
    Location
    Somewhere in time
    Posts
    5,561

    Tips and Tricks to make a game.

    I won't show you how to make game. It won't help you to make a superbe platform, RPG, shooting games. But these are few tips and tricks that will help you.

    ____________________________________________________________________

    Build a skeleton first.

    Many games project are abandoned because the coder is facing something too hard.
    Yes Actionscript can get very hard when you over complicate it. When you start building a game, make the basic first. If it's about a shooter game, don't go all: " I'm gonna make super Hard boss, awesome backgrounds and stuff like that" You won't continue your game. You need to make the "SKELETON" or in other word: the basic. Start with only what you need. If it's a shooting game, Make the movable ship that shoots and stupid enemy.
    If it's a rpg, basic health, strength and combat system. When your "SKELETON" is builded up. You can add everything you want on it. Or just simply leave it like that.

    ____________________________________________________________________

    Keep it clean

    Let's all look a two codes.
    Note: Fast written to codes. Don't try them at home.

    First Code
    Code:
    onClipEvent(load){
    x = 2;
    y = 3;}
    
    onClipEvent(enterFrame){
    if(x == 2){this._x = 45}
    else{ this._x = 78}}
    
    onClipEvent(enterFrame){
    if(y == 3){ this._y = 45}
    else{this._y = 78}}
    Second Code
    Code:
    onClipEvent(load){
    x = 2;
    y = 3;}
    
    onClipEvent(enterFrame){
    
    if(x == 2){this._x = 45}
    else{ this._x = 78}
    
    if(y == 3){ this._y = 45}
    else{this._y = 78}}
    So what is the difference between them?
    They both do the same thing, but one is cleaner than the other.
    Guess which one!...Correct! Number 2. Yes I've seen peoples creating a new clipEvent for each if Statements. Keep coding clean is a good start to make a good game.
    ____________________________________________________________________
    Comments, you'll need them

    Yeah why comments? You know what you're doing so what's the point?
    The fact: Comments is for the other guy. Who is that other guy.
    Simple, yourself in a week. Not only comments are very helpfull to:

    Situate where the hell are you
    What this function do
    Other Crazy stuff.

    But they are flashy green and are easy to see.

    Example of comments:

    Code:
    //Load variables
    onClipEvent(load){
    x = 2;
    y = 3;}
    //Start Event
    onClipEvent(enterFrame){
    
    //Where X will go
    if(x == 2){this._x = 45}
    else{ this._x = 78}
    
    //Where Y will go
    if(y == 3){ this._y = 45}
    else{this._y = 78}}
    I recommend commenting a lot.
    ____________________________________________________________________
    Keep all your variables in one frame

    A game can have lots and lots of variables.(Current game i'm working on as 23 variables and of course more will be created) This can be an ass when you want to edit a variable but you don't know where the hell you added it. The simple trick(Great one) Is to load all your variables on one frame. Now you can edit every variables, rename and create new one easily.

    ____________________________________________________________________

    Naming a frame can help

    What is good by naming a frame?
    Well you can freely move the frame everywhere you want and it won't change a damn thing. Why?
    For example you have frame 3 named:
    lol
    And this is your Actionscript
    Code:
    gotoAndPlay("lol")
    But oh no! You noticed that "lol" Shouldn't be on frame 3 but on frame 6.
    You change it and you don't have to worry about the gotoAndPlay!
    ____________________________________________________________________

    Conclusion

    Even with these tips you have a lot to do. Do not always depend on tutorials to make a game. Try to discover your limits. But for sure: These tips and tricks will help you.

    ____________________________________________________________________
    The end.

    Written by: William Wright
    For: DarkDemon

  2. #2
    Nev
    Nev is offline
    Veteran Enthusiast

    Join Date
    Feb 2006
    Posts
    8,835
    You said it would be epic on MSN, and though these are very good tricks on keeping an organized game, I was hoping something better than your photoshop tut, before all the images messed up.

  3. #3
    Obsessed Veteran Adam's Avatar



    Join Date
    Nov 2004
    Location
    UK / England
    Posts
    17,271
    You should format your brackets properly to make it easyier to read.

  4. #4
    Senior Member
    Join Date
    Jun 2007
    Location
    ?_?
    Posts
    398
    not bad, atleast no one uses byond anymore 0o, i used to code but got bored with it lol


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •