Data Realms Fan Forums
http://45.55.195.193/

Put a sprite in front of everything
http://45.55.195.193/viewtopic.php?f=1&t=13986
Page 1 of 1

Author:  Stophe [ Wed Mar 18, 2009 7:50 am ]
Post subject:  Put a sprite in front of everything

Hello!

I am working hard on my first mod, a lua scripted scene, and I wonder if there's any way to put a sprite in front of everything else on the map? For example, in front of a building so that you can't see the inside until youve entered it?
If tried to set a MOSParticle, MOSRotating, MOSPparticle with a screen effect, nothing works.

Any idea welcome. Thanks!

Author:  411570N3 [ Wed Mar 18, 2009 8:18 am ]
Post subject:  Re: Put a sprite in front of everything

By screen effect did you mean massive glow? If not, try a large glow on an invisible, unhittable particle...

Author:  Kallemort [ Wed Mar 18, 2009 10:41 am ]
Post subject:  Re: Put a sprite in front of everything

Stophe wrote:
Hello!

I am working hard on my first mod, a lua scripted scene, and I wonder if there's any way to put a sprite in front of everything else on the map? For example, in front of a building so that you can't see the inside until youve entered it?
If tried to set a MOSParticle, MOSRotating, MOSPparticle with a screen effect, nothing works.

Any idea welcome. Thanks!

I remember someone making something like this back in the older builds. What if you try, and make a module have a normal foreground, no background, and the mat file will show it as air? That should work.

Author:  Stophe [ Wed Mar 18, 2009 12:28 pm ]
Post subject:  Re: Put a sprite in front of everything

411570N3 wrote:
By screen effect did you mean massive glow? If not, try a large glow on an invisible, unhittable particle...

A massive glow, yes. The problem is that my sprite appeared all blue and translucid, whatever the parameters.
Kallemort wrote:
I remember someone making something like this back in the older builds. What if you try, and make a module have a normal foreground, no background, and the mat file will show it as air? That should work.

Just did that, this seemed to work, but as soon as the game starts, it disappears. I assume it's because the air material is somewhat ignored...

Author:  Kallemort [ Wed Mar 18, 2009 12:59 pm ]
Post subject:  Re: Put a sprite in front of everything

Stophe wrote:
411570N3 wrote:
By screen effect did you mean massive glow? If not, try a large glow on an invisible, unhittable particle...

A massive glow, yes. The problem is that my sprite appeared all blue and translucid, whatever the parameters.
Kallemort wrote:
I remember someone making something like this back in the older builds. What if you try, and make a module have a normal foreground, no background, and the mat file will show it as air? That should work.

Just did that, this seemed to work, but as soon as the game starts, it disappears. I assume it's because the air material is somewhat ignored...

Then, uh, try to set the whole mat as BG? I don't know, I think my previous method used to work.

Author:  Stophe [ Wed Mar 18, 2009 5:32 pm ]
Post subject:  Re: Put a sprite in front of everything

Ok sorry. I said the MOSRotating didn't work because it wasn't fast at all, i dropped to something like 3 f/s, that was because i didn't specify the material was Air. It's ok now! Thanks for your help!

Author:  vagyr [ Wed Mar 18, 2009 5:42 pm ]
Post subject:  Re: Put a sprite in front of everything

wow...
if it works it will be impressive...

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/