Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Source needed for a 2D RPG

Author
Message
XIVdevil
22
Years of Service
User Offline
Joined: 13th Apr 2004
Location: At his HQ (His bedroom)
Posted: 14th Apr 2004 02:03
Hey all,
Im working on a 2D sprite based RPG and was wondering if anyone could help me by posting a source code, All help will be credited.
Thanks
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th Apr 2004 02:07
Robert locke sounds like the right name.

XIVdevil
22
Years of Service
User Offline
Joined: 13th Apr 2004
Location: At his HQ (His bedroom)
Posted: 14th Apr 2004 02:11
Please be serious about this, I havent explored the 2d side of DB yet and I would appreciate help.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Apr 2004 02:34 Edited at: 14th Apr 2004 02:34
If you post a general 'gimme da codez' type request like this on the same day that you've registered, you are not going to be taken seriously.

Start by designing your game, and maybe even write some code, and then if you hit a problem we'll all be willing to help you out to fix it. But we won't write it for you.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
XIVdevil
22
Years of Service
User Offline
Joined: 13th Apr 2004
Location: At his HQ (His bedroom)
Posted: 14th Apr 2004 02:43
Thanks for that, ill keep that in mind
Manticore Night
22
Years of Service
User Offline
Joined: 23rd Oct 2003
Location: Ouinnipeg
Posted: 14th Apr 2004 02:56
@ XIVdevil Producer Robert Locke: Is that sarcasm in that last post. If it is then you are going to have a hard time getting someone to progam a game for you. And if you plan on selling this game, try doing something original.

It's amazing how much TV has raised us. (Bart Simpson)
Peter H
22
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 14th Apr 2004 03:04
XIVdevil Producer Robert Locke- (this post only applys if that " " was sarcasm...) if you didn't know that "IanM" person is a MODERATOR! these people are (and i quote...) "Gods".............so pay attention when they talk


Formerly known as "DarkWing Duck"
XIVdevil
22
Years of Service
User Offline
Joined: 13th Apr 2004
Location: At his HQ (His bedroom)
Posted: 14th Apr 2004 03:34
I wasnt being sarcastic, i dont want anyone to do programming for me, i just needed help with creating some RPG based systems, YES i am aware of the powers of moderators so if they have a problem with this thread like i am then i want them to lock it so i wont get any more problems from people who are not willing to help me.
XIVdevil
22
Years of Service
User Offline
Joined: 13th Apr 2004
Location: At his HQ (His bedroom)
Posted: 14th Apr 2004 03:36
oh and the " " was wondering if i was in trouble
jack123
22
Years of Service
User Offline
Joined: 25th Apr 2004
Location:
Posted: 26th Apr 2004 05:39
dont double post just edit the first one..
zenassem
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 1st May 2004 00:36 Edited at: 1st May 2004 00:39
First, I don't think that it's a benefit to the community to make people feel as though moderators are "SUPERNATURAL."
(I mean look at Ianm's avatar... His head couldn't possibly get any bigger! j/k).

They are merely hard working individuals who have a lot of knowledge, talent, and a seemingly endless amount of patience to help everyone and anyone.

So let's just say that they are more like saints.
Or to steer clear of religion... perhaps they're just SUPER!

It may not be a good idea to make someone who just joined us feel scared of moderators, and confronted on their first post.

Second, I really don't see "much" wrong with his/her post; Albeit, he/she probably could have worded it a little better.

Just like many of us began learning to use DarkBasic by following the included Tutorials; This friend, who would like to attempt an rpg, would appreciate it if someone could provide him/her with sample rpg-esque code so that he/she can see how it is done, and learn. I think it was meant to be taken a little bit differently from "give me the codez!!!". Or the even more infamous:

"What "COMMAND" will creat a real-time 3D environment with monsters, & puzzles, and Airships (yes I must have Airships..). Oh! And If it's not too much to ask... Can someone create a 20 minute Cinematic Intro for me??? Because I have a really cool idea" : Type posts.

Now that I'm thorugh ranting, which in no-way helped our new friend... I will Post a fairly simple "bare-bones" frame-work for the setup of an Tile-Based (Early Final Fantasy) type world and simple (Trust me simple) Encounter & combat sequence. I should be able to post it before 6:00pm U.S. Eastern Standard Time.

Just keep in mind that RPG's take a Huge amount of time knowledge, skill, luck, to even get started. Hopefully you already have the artwork, animations, storyline, puzzles, Battle system, Item handler, event handler, (essentially a very detailed Design Doc) already in place. And if this is your first programming attempt It may leave you very discouraged. Though I think that there is great value in even never completed projects. As long as it keeps your interest and you are learning + having fun!

zenassem
23
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 1st May 2004 02:32 Edited at: 1st May 2004 05:07
(EDIT)
NOTE:
THE SOURCE AS POSTED RUNS UNDER DB classic! I am editing the source so that it compiles properly under DBPRO. I will Repost when I work out The sync And function/Variable naming quirks.



Here is a "simple" example of the beginnings of a basic rpg/adventure. (Click the Source Icon At the bottom of this reply). You will have to create a few images to represent the tiled world (or I can e-mail you them if you would like), Character, Backgrounds for battle scenes, And enemies. Keep in mind that I am not aware of your skill level, so appologies if this is too simplistic for what you need.

Also note that this is just a sample to illustrate a few of the basics for creating a tile-based rpg. Be aware that the methods used (ie. Datatypes, maps, battlesystem etc...) would not be good for creating a "large" or even "mildly" complex rpg. The "hard-coding" would get too confusing, eg. Triggers, Events, Dialogues, Items, Game flags (Game logic, or finite state machine), and is really an impractical approach to rpg design. RPG's by nature are (IMHO) the hardest game genres to code. That is why it's hard to give someone a tutorial that would be decipherable. However, I think this example gives you a base to jump from. I find that DarkBasic is not the easiest language or the best choice to write RPG's. Some may disagree, and some have been successful in doing so (my hats off to them). But it's kind-of using the wrong tool for the job. No matter which language you choose, you would most likely want to incorporate a scripting language (or develop your own script) to take care of events and the above mentioned management details. Basics Lack of classes and inheritance makes it difficult (yet not impossible) to management the assortment of data that an rpg requires. You will also most likely begin by developing your own tools to make the game creation process easier to chew. This includes A mapmaker with ability to manipulate triggers, timers, animated tiles, multilayered tiles, fringing (tile transition algorithms), item placement etc... If you are creating your own characters you will may also want to develop your own animation viewer, so that you can get instant feedback on how your sprites look. BTW, scripting, & seperately compiled Dlls, help to keep compile times down, & using a script parcer should offer a nice interface to make changes to the game smooth and less time consuming.

Here Are two Screenies to show you what it looks like. Please don't laugh.





I think the most daunting part of creating an RPG, from my experience, is the amount of high quality, in-scale both size & color pallette, graphics are neede. At one time when I thought I was ready to tackle an rpg, I had been drawing bitmapped items, tiles, characters, & weapons for about 6 months and i wasn't even close to having enough drawn to complet my Ideas for a single town. But If you know what you are in for, and are still committed to coding an rpg here is the Basic code that I promised.[img]

Login to post a reply

Server time is: 2026-06-09 15:43:45
Your offset time is: 2026-06-09 15:43:45