Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i just started programming a couple days ago. ive picked up on it pretty easy enough, but i still have a lot to learn. i was wondering if someone could help me out with making a system for random enemy encounters. with how many monsters appear and their stats.drop rates,enemy commands, etc. i have a program with a char on a bitmap to test things on, so if anyone could help me, it would be greatly appreciated. thanks!

share|improve this question
First off, we're going to need more information. What sort of game? What does the enemy class look like? When should it be generated? What should be generated? What have you tried and what is your exact question? – The Communist Duck Jun 12 '11 at 20:44
just a basic 2d rpg like old ff games. and i was thinking about just starting off with just using a simple goblin. i guess my question would be how to make goblins appear in random encounters on a world map or dungeon. and how to make it random so its not a battle every 10 steps. – Spenser Larson Jun 12 '11 at 20:59
For starters, describes how Final Fantasy I's random encounter system worked. But your question is quite general, and you need to rephrase it - pick one of the things you mentioned and describe in more detail, perhaps? – li.davidm Jun 12 '11 at 22:22
I suggest researching other rpg games, until you actually know what you want to do, instead of a vague sense of what you think might want to do. – AttackingHobo Jun 12 '11 at 22:57
ok well do you know of a good tutorial or guide for vb on creating a simple 2d rpg? ive been looking and cant find a good one. cuz that would be a lot easier than asking A LOT of questions on a forum like this. any suggestions or advice would be helpful and appreciated. – Spenser Larson Jun 12 '11 at 22:59

That is the art of programming, figure what you want and make a program that does it. You haven't yet figured what you want. You have an idea on the level of: "Sorta like Diablo", but you are not able to describe in sufficient detail what that actually means, and thus you can't convert it to code.

I think you should skip the random part for now, it's a whole host of problems and tricky decisions that you shouldn't worry about now. For someone a few days green an RPG is plenty overambitious on it's own.

What projects have you by the way done so far?

share|improve this answer
well ive made a calculator,web browser, some easy stuff. um a bitmap editor/creator. and basically a started rpg. but its just a char moving around on a grass bitmap with trees and mountains. – Spenser Larson Jun 12 '11 at 22:50
So the RPG is your first game project. Then I'll be so bold as to suggest that you do some other games first. Make a Tetris clone, it's most certainly an unoriginal suggestion, but it has good learning value and you shouldn't have as grave problems figuring what you want in a Tetris clone. – aaaaaaaaaaaa Jun 13 '11 at 0:15
ok. i was gunna make a few games first before i really got into the rpg. like pong, tetris, etc. – Spenser Larson Jun 13 '11 at 0:21
Then make those games and worry about your RPG when you are ready. – aaaaaaaaaaaa Jun 13 '11 at 1:34
It's hard to say. You do though seem awfully productive, that is a lot of programs in a short time. If you want to know where you are I think you should show off what you have made, your code and your games. – aaaaaaaaaaaa Jun 13 '11 at 10:54

If you're thinking of developing something along the lines of a Roguelike, try this FAQ. While that wiki doesn't generally tell you how to program any of the things it describes it does give you a good look at what you need to consider while designing an rpg.

share|improve this answer
ok thank you very much. this should be very helpful. i appreciate it. – Spenser Larson Jun 14 '11 at 19:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.