Bleach World Wide Adventures

Welcome to the Bleach World Wide Adventures forums!

Join the forum, it's quick and easy

Bleach World Wide Adventures

Welcome to the Bleach World Wide Adventures forums!

Bleach World Wide Adventures

Would you like to react to this message? Create an account in a few clicks or log in to continue.

2 posters

    Let's Make a Game With Byond (I)

    avatar
    Shy Hooker


    Posts : 35
    Reputation : 0
    Join date : 2013-06-02

    Let's Make a Game With Byond (I) Empty Let's Make a Game With Byond (I)

    Post  Shy Hooker Thu Jun 13, 2013 7:53 pm

    Hello everyone. I know there's a few people in this community that would like to know how to make their own game, and I am gonna show how to make a game, all I learned was with Falacy, Forum_Account, DM Reference Guide and some code tips with the languages I knew before DM.
    I am gonna assume you all can create an environment, all files/source will be shared when we complete this simple game.

    Just after you create your Environment, you will be asked to name your first code file, name it whatever you want. I'll call it Main.dm and then do the following:

    Let's Make a Game With Byond (I) Code110


    Code:
    world
       name = "Bleach Game Tutorial"
       map_format = TILED_ICON_MAP
       view = 9
       mob = /mob/Alive











    Here we are setting the name of our world/game, I called it Bleach Game Tutorial, because I want to make it loosely based on Bleach anime with some RPG elements.

    What we are accomplishing with map_format is how we want to display our map, I choose TILED_ICON_MAP format but that's not how I want because there's some differences between all map formats, and if I want to use larger icons, what should I use ? Smile This one is for you.

    View doesn't matter atm, I'l lget into it later on. And for last I am only setting /mob/Alive as our would mobs default.


    Code:
    mob/Alive
       invisibility = 0


    mob
       Login()
          src.loc = locate(5, 5, 1)
          ..()

       Logout()
          del src
          ..()









    I am setting our mob to be visible, why ? Just using it to avoid errors when compiling, but it will change in future.

    Using Login procedure to be called whenever a player enters the game.
    With src.loc = locate(25, 25, 2) I am setting the players location to a certain place in map, locate(x, y, z).

    In Logout it's called whenever a player leaves the game, and deletes the mob. Smile


    Now, let's make the best icon to represent the grass in map! Let's make this a bit organizing and call it Turfs.dmi so you can put more turft icons later on.
    Here's an example:

    Let's Make a Game With Byond (I) Icon111

    Now let's code it, first make a code file, I'll call it Turfs.dm and do the following:

    Let's Make a Game With Byond (I) Code210

    Err, I organized that bad, we will organize that in next tutorial.  That Grass is child or Misc, it belongs to Misc group. And we setting the turf icon.

    Now we create the map, I'll name it MainMap and X: 50, Y: 50, Z: 2 <-- That means it's gonna have 2 levels. Press CTRL+K .. By this point yo udon't have any errors.
    In your object tree, select turf, plus Misc and you should find your grass. Select it and then press click in Fill, now fill the whole map with grass! Compile again.
    Press CTRL+R, it should start up with your map. You are invisible because our player doesn't have an icon yet, but hey you can walk in your grass.
    See ya in next tutorial, if anyone needs any help, reply here and I'll do my best to explain.
    avatar
    BartPL


    Posts : 15
    Reputation : -1
    Join date : 2013-06-07

    Let's Make a Game With Byond (I) Empty Re: Let's Make a Game With Byond (I)

    Post  BartPL Fri Jun 14, 2013 9:30 am

    They will do Copy - Paste.
    But tutorial is good for newb.
    avatar
    Shy Hooker


    Posts : 35
    Reputation : 0
    Join date : 2013-06-02

    Let's Make a Game With Byond (I) Empty Re: Let's Make a Game With Byond (I)

    Post  Shy Hooker Fri Jun 14, 2013 9:34 am

    Their problem not mine, they can copy that code, but typing is the way to go. You learn like that too.
    And yeah it's supposed to be for beginners lol,  Idon't think anyone is in intermediate level except Crit. But I'll cover more basics and etc.
    avatar
    BartPL


    Posts : 15
    Reputation : -1
    Join date : 2013-06-07

    Let's Make a Game With Byond (I) Empty Re: Let's Make a Game With Byond (I)

    Post  BartPL Fri Jun 14, 2013 9:40 am

    Add something like:
    - talking with npc
    - picking healing herbs or something
    - Clothes...
    - How to add music/sounds maybe


    If u are bored of course xD Razz
    avatar
    Shy Hooker


    Posts : 35
    Reputation : 0
    Join date : 2013-06-02

    Let's Make a Game With Byond (I) Empty Re: Let's Make a Game With Byond (I)

    Post  Shy Hooker Fri Jun 14, 2013 9:59 am

    Thanks for the suggestions, specially that sounds/music.
    Next tutorial (when I get home), will have 2 fixes (I messed up some names but works), we are gonna make an interface and make it look a bit sweet, world chat and some variables for our player.

    Sponsored content


    Let's Make a Game With Byond (I) Empty Re: Let's Make a Game With Byond (I)

    Post  Sponsored content


      Current date/time is Thu Nov 14, 2024 10:41 pm