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.

Newcomers DBPro Corner / 2d in 3d trouble....

Author
Message
Kivu_Rako
20
Years of Service
User Offline
Joined: 10th May 2004
Location:
Posted: 20th Oct 2004 10:37
okay heres the deal.
i am (like most of us) making a game. I'm mostly independant and try to seek help as little as possible, but this one has me stumped. so here goes....
i want anything 2d to appear in the game while its running 3d models and such. Ive got a player model an npc, and small level yadda yadda. anyway, nothing 2d will show up on the screen, like if im in the do-loop, and i say
"
if object in screen(7)=1
npcx#=object screen x(7)
npcy#=object screen y(7)+25
ink rbg(255,255,255),0
center text npcx#,npcy#,"JOE"
endif
"
it doesnt say joe anywhere.
it doesnt say there is an error either.
it just doesnt show up.
keep in mind it is in the do-loop
WHY
i dont know why
is there an easy explanation?!
notice my quote

"geez, its probably a noobish mistake too!"
Kivu_Rako
20
Years of Service
User Offline
Joined: 10th May 2004
Location:
Posted: 20th Oct 2004 10:45
(DBC) srry forgot to say.

"geez, its probably a noobish mistake too!"
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Oct 2004 03:49
sync on:sync rate 40
make object cube 1,1
make object sphere 2,1
point object 1,1,0,0
point object 2,-1,1,0
position camera 0,0,-40
do
restore labels
for i=1 to 2
move object i,0.1
read a$
center text object screen x(i),object screen y(i),a$
if object position x(i)>20 or object position x(i)<-20
position object i,0,0,0
endif
if object position y(i)>15 or object position y(i)<-15
position object i,0,0,0
endif
next i
restore labels
sync
loop
labels:
data "cube","sphere"

works fine here, try comparing that to what you have, there must be some code error, cheers.

Mentor.

PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.

Login to post a reply

Server time is: 2024-11-27 13:03:12
Your offset time is: 2024-11-27 13:03:12