|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Forcing an object to appear in front of terrain.
Author |
Message |
Petethegoat
Joined: Mon Jun 15, 2009 4:02 pm Posts: 905
|
Forcing an object to appear in front of terrain.
Hey all, I'm looking into some experimentation with line-of-sight. I'm fully aware that (in theory) it'll be in the next build, which is why I'm taking a very simple approach.
Basically, I figure that I'll just have a MOSRotating, MOSParticle or whatever, that is just a big black box to obscure one corridor/area. When the player character touches that box, it sets it's frame to a transparent one, and spawns in any enemies that would be in the corridor.
The only requirement is that the box, whatever it is, needs to appear above terrain. Is this possible?
|
Tue Aug 17, 2010 5:37 pm |
|
|
Areku
Joined: Fri Oct 17, 2008 9:46 pm Posts: 5212 Location: The Grills Locker.
|
Re: Forcing an object to appear in front of terrain.
To put it simply, no. Terrain data is currently hardcoded to appear over anything else, so I can't think of any way to make it work. You could use a hmungous amount of glows, but that'd hardly be efficient at all.
|
Tue Aug 17, 2010 7:36 pm |
|
|
Petethegoat
Joined: Mon Jun 15, 2009 4:02 pm Posts: 905
|
Re: Forcing an object to appear in front of terrain.
Oh dear. I've thought of a somewhat horrifying (but potentially better) solution.
Essentially, it relies on everything involving field of view being underground. You'd have a top tunnel entrance piece already visible, which an MOPixel that, on line-of-sight with the player actor, spawns in two MOSRotatings, one of which clears the centre of the next piece of the tunnel, and the other one settles as the tunnel walls. Overly complicated, but it might be the only option.
If you can see any flaws or problems with this method, feel free to point them out.
|
Tue Aug 17, 2010 8:25 pm |
|
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|