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 / Cant get screen objects to work

Author
Message
Game Master1330
17
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 7th Jul 2012 01:36
Hey,
I'm trying to get a 40x40 box to appear around an object but i cant seem to get it to work...

This is what i'm using:


I've also tried just printing the outputs to debug, and they don't even change when I move around... they give me a hugely negative number...

Any ideas?

Matt

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Jul 2012 01:43
Is otherplayer a primitive, or a loaded object?

TheComet

Game Master1330
17
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 7th Jul 2012 01:50
its a loaded object... i've tried using the actual number as well but that doesn't work either

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Jul 2012 03:18
It would hide your object wouldn't it? I just tested it anyway, and it works, but covers up objects.

erebusman
13
Years of Service
User Offline
Joined: 23rd Jul 2011
Location: Sacramento, CA
Posted: 7th Jul 2012 04:28
What about using a sprite as the box? Load the sprite first then the other player so it draws on top of it perhaps?
Game Master1330
17
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 7th Jul 2012 11:33
I don't understand how it's working on your computers... On mine, it thinks the object is at -1900000000, -1900000000 on the screen, even when it is on the screen...

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Jul 2012 12:46 Edited at: 7th Jul 2012 12:47
Quote: "I don't understand how it's working on your computers... On mine, it thinks the object is at -1900000000, -1900000000 on the screen, even when it is on the screen..."


Being as I have upgraded my computer multiple times over the years, and used several Chips, and Graphic cards, I don't see how you could get a computer where it doesn't work. I would think that you have an error in your code somewhere.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 7th Jul 2012 14:58
Hmm, I have a similar issue, that's why I asked you if it was a loaded object in the first place. Could you possible upload your project for me to try out?

TheComet

Game Master1330
17
Years of Service
User Offline
Joined: 19th Oct 2007
Location: (GetReaderXYZ() * 42 ) / 0
Posted: 7th Jul 2012 15:25
ok ive figured it out... the problem was that i had multiple cameras for water reflections and other things... I forgot to set the current camera back to the main one, so it was finding the object on a different camera...

Position Object Game Master1330, Object Position X(Reader), Object Position Y(Reader), Object Position Z(Reader) - 5

Hide Object Game Master1330
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Jul 2012 15:29 Edited at: 7th Jul 2012 15:29
Good, glad you solved it.

Login to post a reply

Server time is: 2024-11-23 20:56:04
Your offset time is: 2024-11-23 20:56:04