HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adjusting according to camera loc

01-15-2007, 11:21 PM#1
Mezzer
I tried getting what I wanted in a few different manners with crappy results (damn I'm rusty), so I thought it better to just ask.
I wanna know how one would go about locking floating text to a player's camera so it always shows up in the same location, left corner for example. I'd also need to do this for multiple players, another tidbit which I am at a loss how to do with camera objects. By locking I mean fixing it to a constant location relative to the user's camera (screen).

Anyway, thx in advance for any help guys!
01-15-2007, 11:36 PM#2
maximilianx
ooh ooh i figured it out, hopefully you know how to fix leaks tho cuz i dont...but yeah.. i did this and it worked =]
Trigger:
move trigger
Collapse Events
Time - Every .01 seconds of game time
Conditions
Collapse Actions
Rect - Center camera_target on (Target of current camera view)
Floating Text Change the position of (your text variable) to ((Center of camera_target) offset by (800.00, 700.00)) with Z offset 0.00

so yeah basically camera_target is a region, the region needs to be a variable too btw...and uhh..thats all i got.
01-15-2007, 11:43 PM#3
Mezzer
I tried something similar and the text skipped a lot when panning the camera, not to mention that I'd still need to adapt that for use with multiple cameras. Thx anyway!
01-16-2007, 12:15 AM#4
maximilianx
yeah i noticed the skippiness, and yeah it would be a pain to adapt to like 12 cameras, but i dont know if theres another way