How do I make a side scrolling game?
Hi! I was at your website today and was reading the question and answer section and wanted to know if you could help me because I really need help!!! I'm planning on making a game. A simple side scrolling game. I know c++ and I know what to do to code the game: Classes, functions, pointers (well I'm kinda new at pointers), etc. So I'm ready to start making my game. BUT!! I have NO CLUE how to program the graphics! Please I need help! I've been to many internet sites and have read a lot of source code but still I don't understand how to make graphics and how to animate them on the screen. An example of the game I would like to make is Commander Keen. I was planning on making a simple side scrolling game and build on it and make it more detailed slowly after time.

Please if you could help, it would be extremely appreciated!

Thanks, Paul M.

Have you checked out www.makegames.com. I think that is pretty much exactly what they do or maybe they just do a scroller.

Usually you make the a commander keen level out of "tiles". You need a map editor to do this. If you don't mind using a dos program (should run under windows I think) you can use tUME. http://members.aol.com/opentume/

Basically it's the same as if you were to use text to make the game with '=' being the ground and "|" being a wall and * being a coin (think mario). Except instead you have a graphic that looks like ground, usually 16x16 pixels or 32x32 pixels and you only draw it on tile size pixel boundaries (relative to the entire level, not the screen) Then you apply a meaning to each "tile" For example since you know '=' is the ground to can check if the player's character touches that tile and if so make him walk on the ground. Usually I do this through a look up table. That way for each type of graphic it's assign a type. Then you can easily add graphics

example

type 0 sky
type 1 ground
type 2 wall
type 3 diggable ground
type 4 water

etc.

tile 0 ' ' type 0
tile 1 '=' type 1
tile 2 'w' type 4
tile 3 '%' type 3
tile 4 '#' type 1
tile 5 'X' type 1
tile 6 'M' type 1

as you can see there are several "graphics" or images that correspond to type 1 (ground) so that your program is really only concerned with the type of each tile (is it ground, is it sky, was I in the sky and now I'm in the water, etc...)

to draw the background you'd do something like this

#define SCREEN_WIDTH  640
#define SCEEEN_HEIGHT 480
#define TILE_WIDTH     32
#define TILE_HEIGHT    32
#define TILES_ACROSS_SCREEN ((SCREEN_WIDTH + TILE_WIDTH - 1) / TILE_WIDTH)
#define TILES_DOWN_SCREEN ((SCREEN_HEIGHT + TILE_HEIGHT - 1) / TILE_HEIGHT)

#define TILES_ACROSS_MAP 1000
#define TILES_DOWN_MAP   1000

uint16 map[TILES_DOWN_MAP][TILES_ACROSS_MAP];

int worldxpos; // in pixels
int worldypos; // in pixels

DrawMap ()
{
   int toplefttileX = worldxpos / TILE_WIDTH;
   int toplefttileY = worldypos / TILE_HEIGHT;

   int offsetX = worldxpos % TILE_WIDTH;
   int offsetY = worldypos % TILE_HEIGHT;

   uint16* pTile = &map[toplefttileY][toplefttileX];

  for (ty = 0; ty < TILES_DOWN_SCREEN + 1; ty++)
  {
     for (tx = 0; tx < TILES_ACROSS_SCREEN + 1; tx+)
     {
         DrawImage (
             images[*pTile],
             tx * TILE_WIDTH - offsetX,
             ty * TILE_HEIGHT - offsetY);
         pTile++;
      }
      pTile += TILES_ACROSS_MAP - (TILES_ACROSS_SCREEN + 1);
   }
}

got it?

-gregg




Pass it on

Comments:
I need help making a login for my website!
I need help making a login for my website!i have been looking all over the web to find a way to makew a login on my website like the one you got to login to make a post plz help PLEASE.

Email me plz with the anwser so i ccan find it my e-mail is svnaln@hotmail.com
posted by svnalnApril 8, 2003 at 18:19 [ e ]
I REALI NEED HELP
HEY!! I WAS READIN YOUR WEBSITE  I NEED TO KNOW HOW TO MAKE A GAME LIKE RUNESCAPE I MEAN THEY MUST OF DONE SOMETHING SO WHAT CAN I DO TO MAKE 1 LIKE IT ???
posted by anon_SNOOPY1121HOTMAILCOMMay 24, 2003 at 9:49 [ e ]
MAKING A GAME
HI,IM NEW TO ALL THE MAKING GAMES ETC COULD YOU PLEASE TEL ME HOW TO GET STARTED AND WHERE TO LOOK FOR A GOOD EASY FREE SITE THAKS ALOT SHANE
posted by anon_SNOOPY1121HOTMAILCOMMay 24, 2003 at 9:58 [ e ]
Want to make Games?

I ran a website a long time ago and am still using Visual Basic (6 and .net), MS SQL Server 2000, and DirectX to make games. I figured I would branch out a bit since I'm still working on these projects though the site is pretty barren and dead now. Send an email to me at gibbs@teamgalocia.net if you are interested. Thanks...

-gibbs

posted by TeamGalociaJune 3, 2004 at 11:09 [ e ]
Have you ever played runescape? I wanna know how they make it.
I wanna know how them make the game like runescape because it is one of my favorite games and I am only 15 so yea. so If you could help me send me an E-Mail at lil_wonder04@hotmail.com. If you have msn messenger then go ahead and add me. I am a game maker finatic. lol. Well sort of.
posted by WolfCarmenJanuary 25, 2005 at 11:55 [ e ]
how do i make a game
i am trying to make a game but i dont know how.i have looked on about 60 web pages now and can not find how to do it . if you know how plz email me at karent05@aol.com . and tell me theprograms i need thanks bradders
posted by braddersFebruary 25, 2005 at 0:30 [ e ]
i know


well, itz pretty obvious that they use Java, XHTML, or XTML to make runescape...i mean come on, when the game loads, it says Java right there in front of u
DUH!!
posted by JackNovember 25, 2005 at 17:33 [ e ]
can some one help me plzl i need some one to tell me were to get soft were that means i can make a game like runescape plz help
posted by needhelpDecember 8, 2005 at 20:54 [ e ]
How can I make game like RuneScape?
How can I make game like RuneScape? I want freeware program and easy to make game like runescape and how can I make it? add me msn Fantasyyoungboy@hotmail.com OR email me Airplaneboy305@aol.com please thank you.
posted by ZeinamdJanuary 6, 2006 at 18:31 [ e ]
Help Me!

I want to make a website like Runescape. But I have no clue where to start. I want a free progam, by the way. Please email me at Kamalandsons@aol.com Thank you

 

P.S. When you email me, write down the subject as: Make your own website.

posted by ZekeFebruary 12, 2006 at 15:09 [ e ]
For those who need help
Firstly, anyone who wants to make a game like runscape better learn how to make games in java. Since most of you asking seem clueless I imagine you can't make a computer say "hello world" sooo.. how about you start with things like RPG maker and  The scrolling game development kit
http://gamedev.sourceforge.n
et/

If you can make games in that THEN think about learning how to program in java, etc.. ok?
otherwise you might aswel try to learn how to speak chinese while being blind and deaf
posted by galokuMarch 6, 2006 at 18:25 [ e ]
if you have the drive to learn java code, its not that hard to figure out.
posted by poopJune 24, 2006 at 13:01 [ e ]
Help
Yea I really need help im only on the first step on game dev and I'm complatly lost how do you edit tilesets where do you go and what do you click im lost plz help me!!
posted by KingkirtaJune 28, 2006 at 13:19 [ e ]
Help
Um does any one know where the view menu is cuz i cant find it and thats the first step!!!! plz help me i really need help!
posted by KingkirotaJune 29, 2006 at 7:48 [ e ]
Dang It
now i need help wat do u do on the second step!
posted by KingkirotaJune 30, 2006 at 8:20 [ e ]
Want to make a sidescrolling game?

Try this

The Torque Game Builder

posted by greggmanJune 30, 2006 at 13:42 [ e ]
Ugg ppl we can do this together!
Look im really new at this programming stuff and i need to know exactly where to start with simple programming to runescape type programming Java{{ however im not really sure where to get the java type game creator so Earthworm135@aol.com cause i need help and i have an idea for all of us.
posted by JonJuly 3, 2006 at 12:27 [ e ]
Some Questions
Ummm... i saw lots of other post in this forum or something like this.
i just need some kind of thing to make a game somehow like runescape but not exactly like it.
please sent me a link to whiteknight502@hotmail.com or whiteknight502@gmail.com or whiteknight502@web.de
it must be free though thx =-)
posted by Cyclo1July 17, 2006 at 6:31 [ e ]
aven
I now how to do programming or can figure it out can anyone help me figure out how to get software to make a game i want a 3d multiplayer design program
posted by nickAugust 3, 2006 at 20:34 [ e ]
read this it will help u alot
add money bags to your freind list if he gets on then tell him to giv u 1 mill hes the creater of game hes my unckle too.he dont get on much cuzz hes still creating runescape2 hes like lvl 1000 he stoped at that spot cuz thats is favirot number email me if u hav any quesions my email is funky_dee82496@yahoo.com my name is kooljodog455 i dont get on much eather cuzz im helping him create it when its done i may get on but i dont no im like lvl 569 right no he raised my lvl he told me thtas as high as hes raisin it but ill trick him into raisin it to the highest lvl
posted by nonthingAugust 15, 2006 at 19:54 [ e ]
go here
hey all that want to know to do.. go to blender dot com and the u should start to learn a few things but still u need to know like J++ or C++ or some other language. or email me and we can talk about this.. Ndrew56890 at gmail dot com
posted by AndrewAugust 24, 2006 at 20:31 [ e ]
hot to make something just like runscape buut im confused
I need your help make a runscape but is in the futer and we will still have our chartors form runescape but they look off the hook
posted by andySeptember 9, 2006 at 3:27 [ e ]
help me make a game like runescape

please help me me make a game like runescape please add me on ur freinds list if u play runescape:mainman878:if u know please email me at<<<<manydice67@yahoo.com>>>>

posted by mainmanOctober 8, 2006 at 12:33 [ e ]
i have made games with java coding
 i have made games with java coding which wasn't to hard to understand, first you need a computer that has a proccesser that can understand the coding,second you have to know were to place this coding , third you need to have a written script on note pad so you can place that with the coding so that you will have sound or your characters can talk and also have the character be able to move and then have objects, and fourt the last thing you need is your voice and you should be able to create a game that could be simple for beginners or a game thats even better than RuneScape. e-mail me at crh11195@netzero.com or go to my website to see 1 game i have made it is called flash pac-man my website is www.tiptopwebsite.com/kyleh (he's my boss kyle h is my boss).
posted by chrisjestirproffesinalgamerh
avemade15gamesinmylifeok
October 21, 2006 at 4:59 [ e ]
my name is chris jestir not that other crap ok?

hi

posted by chrisjestirOctober 21, 2006 at 5:02 [ e ]
i am working on a game called etarnal doom online

i am working on a game called etarnal doom online it has all the coding and scripts ready but i still need to get the characters to move

if you have any questions just e-mail me or go on my website and go on the message board which is not cheats so dont hit that

posted by chrisjestirOctober 21, 2006 at 5:08 [ e ]
i can get you to lv.99 in all your stats

i can get you to lv.99 in all your stats just e-mail me at crh11195@netzero.com chris jestir is my brother alls i need is your username and password.

thank you for playing my runescape game i am telling you my brother made runescape too

posted by zezimaOctober 21, 2006 at 5:11 [ e ]

peter craznik is my real name

posted by zezimaOctober 21, 2006 at 5:13 [ e ]
day of battle(version 1)a.k.a i have no clue the game
day of battle(version 1)a.k.a i have no clue the game is a new game i am working on i have 3 levels to it complete.i am getting rid of money glitches i found but iif you want some money in the game i will sell it to you for 1.00 = 10k
posted by zezimaOctober 22, 2006 at 10:01 [ e ]
my brother chris howard is working on it he disquises his name as chris jestir. it even says chris howard on the game
posted by zezimaOctober 22, 2006 at 10:03 [ e ]
i have 96 trillion gps so if you need money in day of battle tell me and i will sell it to you. it only took me 3 levels to get money so im fine with my money cause i know if i want more i just put the glitch back on and then get my money and then take it off
posted by chrishowardOctober 22, 2006 at 10:12 [ e ]
runescape lvl up

i can make u rich and get all ur lvls up to 99 in just a week

dont listen to that other dude hes lying cuas u cant get that much money my dad owns runescape i got the max money u can get plus i no a glitch my dad told me and i can do it on ur account it gets u the max money ther is all i need is ur user name and password just email me them

at knowsbestmike@yahoo.co.uk

posted by mikeNovember 16, 2006 at 8:46 [ e ]
get you 2 lvl 99

hey im taking accounts ill just make the account combat  and all other skillz.  and also i can get you millions of k and party hats all thoose rare items. i just need your account user and password.

email me at mazemaker225@hotmail.com

posted by heyJanuary 3, 2007 at 2:34 [ e ]

Oh gee, if anybody falls for that crap, I will die a little inside.


PLEASE people, they cannot get you shit by obtaining your username and password. Don't you think if they had your username, they could simply do whatever they wanted with that account? They DO NOT NEED YOUR PASSWORD.

 

Poor chaps.

posted by MurrawhipFebruary 15, 2007 at 2:15 [ e ]
lol ye right the max is 999mil in bank and 999mil in invintory it says that there is no space left when u try 2 receive more. so there.
posted by Thatguywhisedhisdadownsrunes
cape
February 17, 2007 at 11:48 [ e ]
grrrrrrrrrrrrrrrrrrrrrrr

hi im jeff i need help i am triing to make a game like runescape it is driven me crazy im like 16 i need to find out to do this Grrrrrrrrrrrrrrrrrrrrrrrrr

plz help me ps. if u know contact me at asharter33@aol.com see yah

posted by sickandtiredofthisFebruary 22, 2007 at 15:14 [ e ]
PLEASE HELP ME!!
I really wanna know how to make a game like runescape...please email me at lover_green_cat@yahoo.com and tell me what i need to download and stuff to make a really cool game!!
posted by KaileyMarch 17, 2007 at 13:54 [ e ]
i wana a game like runescape
i wana make like much other ppl how to make an game like runscape can some1 help i mean good help !!!!! GOOD HELP not like the most helpers do i wan good help.
posted by zero_March 23, 2007 at 9:57 [ e ]
need help with one thing
I mean i have gamedev, and i wana make a sidescroller game that works like Maplestory. I am going to be taking C++ next year, but i want to know any programs that you can give me that does not require any C++ knowledge for the meantime. I REALLY want to do this, i mean, i know how to make sprites, like the images itself and the full animations, just i need to know one more thing, how to take these animations and pull them into one full set of action. Let's say i have a person punching, and i have like the watever 24 frames for it, i need to know how to pull it together and call it something like "punch attack". sry this is really long just need to know really badly if u can help me with this problem, DYING TO DO THIS. Lol thanks if u can help me!
posted by DaveApril 17, 2007 at 16:36 [ e ]
Additional
Oh just realized that you probably do not know what kind of a game Maplestory is. ^.^ Maplestory is a sidescrolling game, not a level to level game, but an RPG where go around towns, fight mosnters, gain lvl ups, and so on. I also need to learn how to maple it MultiPlayer..... well hope u can help me with my problems!
posted by DaveApril 17, 2007 at 16:38 [ e ]
i'm so stupid
email adress:kingdave126@yahoo.com hope u can send me the info as soon as possible! :D
posted by DaveApril 17, 2007 at 16:40 [ e ]
How Do I Make A Game Like Runescape?
plz Im now A long time trying to make a game like runscape but i dont get it Plz e-mail me at gamerboy_@hotmail.com
posted by zero_April 29, 2007 at 8:15 [ e ]
java mmorpg making

me and my friends are going to make a game like rs.

but i just dont know how to work whit java, i dont even know where to start the 'client'. =p

can someone help me?

e-mail: tyhoon511@hotmai.com

posted by typhoonMay 25, 2007 at 8:09 [ e ]
Ok so if you want to create runescape, you only have to do this: VERY SIMPLE STEPS!!

1. Become an expert at Java, google it up.
2. Gather a team of like 50 people to help you make the game
3. Spend like two years making the game
SUCCESS!

n_n
posted by justMeJune 8, 2007 at 14:05 [ e ]
I KNOW HOW TO MAKE ONE, I'VE DONE IT!

     

My Tutorial

      Hey, I know how to make a game like runescape, it's easy!  Ok. Number one, this is NOT true  :

--------------------------------------------------------------------------

Ok so if you want to create runescape, you only have to do this: VERY SIMPLE STEPS!!

1. Become an expert at Java, google it up.
2. Gather a team of like 50 people to help you make the game
3. Spend like two years making the game
SUCCESS!

--------------------------------------------------------------------------       I did not have to know ANYTHING about Java, and I still don't.  And I didn't need 50 people, I did it by myself!

Number two, this is my last step to this tutorial thing!  You can go to http://www.moparscape.org/sm
f/index.php#11
 to start!  How easy is that.  All the Java files you can download!  The like is a forum to where I started.

 

Thanks,

Blademaster

posted by BlademasterJuly 17, 2007 at 11:21 [ e ]
dude, that's not making a game like runescape, that's copying runescape and making an online server. you can't choose what you put in it.
posted by justMeJuly 29, 2007 at 3:31 [ e ]
yeah the people at jegex can sue you for that and your life will be over!
posted by RidequeOctober 21, 2007 at 12:55 [ e ]
HELP!!!!!!

Can some1 plz tell me how to make a website game like runescpae but my own game my email is Dylan101901@yahoo.com email if u know how

Thanks Alot

Dylan

posted by Dylan101November 24, 2007 at 12:07 [ e ]

Search
Games Qanda
Features
News
Menu