HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Screen coordinates?

06-02-2005, 08:40 PM#1
Taur
how would I get the dimensions of the screen that the player can see, and the coordinates, for two things,

1) the function that displays text at a certain point

2) making a thing, alwayas in the screen
06-03-2005, 12:03 AM#2
Guest
for 1, i think you should just keep trying and guessing where you want hte text to be
for 2, you can do the game trigger that you can pick how long and make it last that long. i don't think anybody, even somebody without a life would play for the max amount of time you can put
06-03-2005, 08:29 PM#3
Taur
I don't quite understand what you mean in 2...
06-03-2005, 09:44 PM#4
JetPack
Quote:
Originally Posted by darkhorde
2) making a thing, alwayas in the screen
You need to be more specific, do you mean text, the cinematic bars, something else?
06-03-2005, 09:50 PM#5
Taur
okay I want to have floating texts displayed so that it's like normal text displayed through the game action, and you can't tell the difference, between it, a.k.a it''s always in front of the player's screen...
06-04-2005, 06:17 AM#6
Raptor--
sorry, can't remember the text placing function with offset, but note that it moves all text, even previously written text, to begin at this offset

you can't, or not efficiently, place floating text in a UI type fashion...

i believe if you want to get the target of the camera, there is a function that returns the point (target of current camera), but this won't work in multiplayer, perhaps you can use getLocalPlayer()

as far as i can tell theres no function for getting visibility of the camera, and guessing won't work unless you also lock the orientation, cause a zoomed in camera will have different bounds
06-04-2005, 09:46 AM#7
yuripro84
well, for making text on the screen, you can always use a filter, but im not sure how you can add new filters. anyway, if you can find out how, just tell it to zoom out with that filter with 250% each color and 0% transperancy, or w/e u want to add. Hope this helps......
06-04-2005, 12:16 PM#8
Taur
Quote:
Originally Posted by yuripro84
well, for making text on the screen, you can always use a filter, but im not sure how you can add new filters. anyway, if you can find out how, just tell it to zoom out with that filter with 250% each color and 0% transperancy, or w/e u want to add. Hope this helps......
the filter helps quite a bit, I know how to get the camera target but okay what if I wanted to have a grunt always in front of the camera hwo would I do that? and what of the FOV, does that help find the screen size?