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.

Dark GDK / Wanting to make 2D RPG....

Author
Message
Furious Dre
15
Years of Service
User Offline
Joined: 9th Nov 2008
Location:
Posted: 19th Nov 2008 16:51
I'm new to Dark GDK. I know most of Basic C++ (Up to Chap. 10 in "Learn to Program With C++" and I read the tutorials in the Dark GDK.

I want to know how you add a 2D world into a game. Like is there a specific function(Like dbLoadImage) or something. I also want to have a person move around in it. I don't know how to put it in words but I'll try:

I want the person to be able to move around without having to load a new map every time you reach the end of the screen. I want the world to move(I guess a Persistant World but Idk if that term is only for 3D games).

Basically no loading screens. Except for maybe a fight or something. Just trying to make a small simple thing as my first "Decent" project.

I read over half of the Dark Invaders Tutorial, but so far I can tell it only has one map so it won't help me too much.

Thanks in advance xD Hope I explained it clearly enough
Swordsman
15
Years of Service
User Offline
Joined: 12th Nov 2008
Location: Wigan, England
Posted: 19th Nov 2008 17:47 Edited at: 19th Nov 2008 17:47
I think you are talking about screen scrolling here? Like in Zelda games, when you move to the left, the map carrys on?

You need to define the screen area, then attach the backgrounds to each other. So, if your player moves right, the background picture scrolls left. When it has scrolled to the edge, another perfectly matching background scrolls in to view. You need to use a buffering technique at each edge of the screen to make it smooth.

Unfortunately, I have no clue how you would code this in GDK asI have only recently started myself and not learnt the whole library yet, maybe someone can help me out a bit with the answer?

EDIT: Link to help:
http://www.tofla.iconbar.com/tofla/gfx/mag03/index.htm

Login to post a reply

Server time is: 2024-09-30 11:33:29
Your offset time is: 2024-09-30 11:33:29