Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
gravity/scroll #273037
06/21/09 04:11
06/21/09 04:11
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
hi, im trying to create a 2d game that uses a scrolling screen. How would i code that and would i draw it all as one giant bitmap, or several smaller ones? And also on the game, i would like the character to jump, how do i set its gravity? Thanks!


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: gravity/scroll [Re: gamingfan101] #273042
06/21/09 04:53
06/21/09 04:53
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Using one giant map will be a good choice since using several smaller bitmap will be more complicated in the way of programming. But I would choose using the second one since it give more flexibility(let's say...tiled map system)

Using gravity in 2D game is like in 3D game except that you use y direction instead of z direction.

Re: gravity/scroll [Re: bart_the_13th] #273166
06/21/09 19:02
06/21/09 19:02
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
ok, thanks! Ive got one question though. How exactly would i set up a tiled map?

Last edited by gamingfan101; 06/21/09 19:03.

Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: gravity/scroll [Re: gamingfan101] #273167
06/21/09 19:10
06/21/09 19:10
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
i think that isnīt easy.
But to the gravity: It is very hard!!! Because you canīt trace. i havenīt found a way for more than one floor-level. I you have an idea PM me

Re: gravity/scroll [Re: Rei_Ayanami] #273255
06/22/09 08:40
06/22/09 08:40
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
If you're a beginner, I would use a giant map. You can perform pixel operations on the bitmap to find collisions. This will be the most hard job, but not impossible.
Gravity calculation itself is not so hard. Just use standard physics equations, translate them to the movement of your bitmaps, and you should be fine.

It'll be collision detection that attempts to kill you :P


Click and join the 3dgs irc community!
Room: #3dgs
Re: gravity/scroll [Re: Joozey] #273272
06/22/09 10:00
06/22/09 10:00
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
For some simple game, just use bounding box for the collision between two objects.
For the bounding box, you can use top-left corner position and bottom-right corner. You can even use pixel operation on the bitmap background combined with bounding corners detection


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1