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.

2D All the way! / Are 2d Games a Pain to make with DBP?

Author
Message
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 26th Jul 2004 13:46 Edited at: 26th Jul 2004 13:50
Hi,
I have been using DBC for about 2 months and made about 4 games and 1 2d shoot em up game engine. Now I finally got DBP because they had that special online edition and now all I do is run into problems. For instance the blue back drop, sprite hit command doesnt seem to work properly (Hits the transparent parts of the sprite), problems with deleting sprites, my title screen with the center text 320,240, "Blah blah" syntax wont show and so on. My guess is DBP is mainly for 3d stuff but I was wondering if there is a big difference with the 2d programming between DBC and DBP. Im really getting annoyed so if anyone could help me out it would be really appreciated.
Thanks Skeletor

Guhill The friendly one
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 26th Jul 2004 15:01
I'll help you since I am making "Perfect Warfare" in 2d in DBP.

Blue background problem: just type in "cls" at the beginning of the code

Sprite hit problem: Don't use it, use "if sprite collision(sprite#,sprite#)=1 then blah blah blah"

I have no idea how to print text over a sprite though, goodluck with that. Even though I barely started Perfect Warfare want me to send it to you right now to show you how to do 2d with DBP. You'll be happy you got it. 2d goes much faster in DBP as well.

Without hating, this world would be perfect.
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 27th Jul 2004 01:17
Thx a ton ,
If you want you can send it to me via email (button below).
Thanks again,
Skeletor

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 27th Jul 2004 07:15
Only problem im still running into is that stupid collision. I just read a post in DBP forum area saying DBP doesnt supporst pixel perfect collision and the only way to get good collision is to code your arse off.

A shoot em up game with half arse collision wouldnt make a very good game... So I might stick with DBC till I start 3d.

Zero Blitzt
21
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 27th Jul 2004 07:18
So, why not just code your arse off?

If point sprite x(1),sprite y(1)=**Insert Color Value Here*
speed=0
Endif

I used that one, the only reason it didnt work was because I never used offset sprite.


Rush owns--> www.Rush.com ---> I'm going to see them Aug. 7
Come to #coding. We promise we wont kick you!
Guhill The friendly one
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 27th Jul 2004 08:01
I just sent it to you, open "Junk Perfect Warfare" in DBP, Junk is the more "completed" one because I call a file junk when I want to test out new things to see if it works, and if it doesn't, I just delete it. Tell me when/if you get it.

Without hating, this world would be perfect.
Dgamer
22
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 27th Jul 2004 08:31 Edited at: 28th Jul 2004 01:57
To write text over sprites. Write text to a separate bitmap, use get image, and then change the sprite priority so that it goes over all other sprites.

[Edit] Took off code.

This sig has been dullified!
Guhill The friendly one
20
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 27th Jul 2004 09:37
What if you don't want it to be a bitmap? What if you want to "print" a variable, like health, over the rest of the 2d. Do you have to make a bitmap for every value "100.bmp", "99.bmp", "98.bmp", "97.bmp", etc...

Without hating, this world would be perfect.
Dgamer
22
Years of Service
User Offline
Joined: 30th Sep 2002
Location:
Posted: 28th Jul 2004 01:56
No. What I meant is make a bitmap from in ur program using the make bitmap command.

This sig has been dullified!
Ishamael Sedai
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: France
Posted: 31st Jul 2004 00:03
memblock to do perfect pixel collision...far quicker than point.....or on the french forum...we have three fonctions or dll to have a new point... up to 8000 times faster....^^

I am the Betrayer of hope naebl'is by the will of
the Great Lord of the Dark. If you do not want to surrender, your soul will burn in the deepest hole of the Pit of doom.
Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 2nd Aug 2004 02:29
hmmm


http://www.angelfire.com/games5/db_games/

Login to post a reply

Server time is: 2025-05-15 22:08:49
Your offset time is: 2025-05-15 22:08:49