View unanswered posts | View active topics It is currently Thu Jan 09, 2025 3:37 pm



Reply to topic  [ 7 posts ] 
 Put a sprite in front of everything 
Author Message

Joined: Wed Mar 18, 2009 7:36 am
Posts: 7
Location: Clermont-Ferrand, FRANCE
Reply with quote
Post 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!


Wed Mar 18, 2009 7:50 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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...


Wed Mar 18, 2009 8:18 am
Profile WWW
User avatar

Joined: Tue Aug 21, 2007 2:55 pm
Posts: 948
Reply with quote
Post 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.


Wed Mar 18, 2009 10:41 am
Profile

Joined: Wed Mar 18, 2009 7:36 am
Posts: 7
Location: Clermont-Ferrand, FRANCE
Reply with quote
Post 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...


Wed Mar 18, 2009 12:28 pm
Profile
User avatar

Joined: Tue Aug 21, 2007 2:55 pm
Posts: 948
Reply with quote
Post 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.


Wed Mar 18, 2009 12:59 pm
Profile

Joined: Wed Mar 18, 2009 7:36 am
Posts: 7
Location: Clermont-Ferrand, FRANCE
Reply with quote
Post 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!


Wed Mar 18, 2009 5:32 pm
Profile
User avatar

Joined: Sun Jan 11, 2009 10:54 am
Posts: 365
Reply with quote
Post Re: Put a sprite in front of everything
wow...
if it works it will be impressive...


Wed Mar 18, 2009 5:42 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.028s | 14 Queries | GZIP : Off ]