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.

DarkBASIC Professional Discussion / Please help me with my Side-Scrolling view...

Author
Message
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 6th Sep 2011 15:58
can someone help me with my side scrolling? i already create the characters, movements and platforms. my only problem is how to make my background move while my character is moving so that it will look like a side-scrolling game.. help me please

i have a problem in darkbasic codes. pls help me
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 6th Sep 2011 17:14 Edited at: 6th Sep 2011 17:15
What's your background made up from? Is it sprites, or plains, or pasted, or a bitmap?

Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 7th Sep 2011 16:04
its a sprite. just a simple picture ive just downloaded

i have a problem in darkbasic codes. pls help me
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 7th Sep 2011 16:49
Have you looked at the demo I posted on your other thread?
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 7th Sep 2011 17:18
oh yeah. i already tried it. but. how come you will play a game if it's background is moving automatically? haha! can i put some commands in there dude? like. if i press arrow key it will start moving, at the same time as my character? if my character stops then the background will also stop. get my point dude? tnx a lot

i have a problem in darkbasic codes. pls help me
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 7th Sep 2011 17:44
Quote: "can i put some commands in there dude? like. if i press arrow key it will start moving, at the same time as my character? if my character stops then the background will also stop. get my point dude?"


Of course you can. That was the whole point of the demo - to get you started. You'll have to work out the rest. If you want the background to move up and down as well then you can use the same idea with extra copies of the sprites.
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 7th Sep 2011 17:58
wow. tnx a lot dude! it really works. tnx again

i have a problem in darkbasic codes. pls help me
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 7th Sep 2011 22:01
ei dude. i have a question.. when my character move and the background starts to move too. my character is already in the top of my background.. so my character will not see anymore but it is still there. getting my point? if you have any idea bout this pls help me. tnx

i have a problem in darkbasic codes. pls help me
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 8th Sep 2011 00:18
Quote: "getting my point?"


No. Why don't you put the character somewhere else?
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 8th Sep 2011 01:24
i try it dude. but the background is so big. so when i load the background at the same time with the character . the character sprite is only at behind of the background sprite. when i do the
i can't move the background.

i have a problem in darkbasic codes. pls help me
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 8th Sep 2011 03:36 Edited at: 8th Sep 2011 10:05
If you don't understand the concept of using variables you really should read some tutorials first before you start making your dream game.

TDKs Tutorials:
http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

If you notice games like Mario the character doesn't really move but stays in the center of the screen.



Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 13th Sep 2011 14:16
sorry for the late reply. Thank You so much Grog. it really helps me a lot for my 2D side scrolling view.

i have a problem in darkbasic codes. pls help me

Login to post a reply

Server time is: 2026-07-11 04:43:49
Your offset time is: 2026-07-11 04:43:49