Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,618 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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