Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to put a de/activable picture in-game ?
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#1
How to put a de/activable picture in-game ?

Hello !

I created a little "creepy-face" and i want to put it in-game and have the possibility to disable or enable this "creepy-face".

Already tested the "decal method" but i can't deactivate it Undecided

Thanks in advance if you can help me !

Sorry for my bad english
Amnesia The Revenge - Chapter 1
11-15-2014, 09:57 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: How to put a de/activable picture in-game ?

Create a custom lamp.
Make the mesh invisble.
Apply the picture as a billboard.
????????????????
Profit

^.^

Trying is the first step to success.
11-15-2014, 10:12 PM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#3
RE: How to put a de/activable picture in-game ?

make it into an entity?

11-16-2014, 12:58 AM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#4
RE: How to put a de/activable picture in-game ?

-Put your image with a billboard.
-Attach it to a small point light named rabbit.
-turn on/off rabbit whenever you want to show/hide your billboard.
-???.
-profit.

11-16-2014, 02:52 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#5
RE: How to put a de/activable picture in-game ?

(11-16-2014, 02:52 AM)Daemian Wrote: -Put your image with a billboard.
-Attach it to a small point light named rabbit.
-turn on/off rabbit whenever you want to show/hide your billboard.
-???.
-profit.

Then you should also say HOW to deactivate is My sexy friend!
This is the function to DISABLE the Billboard and aso the light AND picture!
PHP Code: (Select All)
SetLightVisible("YOURLIGHTFROMEDITORHERE"false); 
(This post was last modified: 11-16-2014, 12:02 PM by DnALANGE.)
11-16-2014, 12:02 PM
Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#6
RE: How to put a de/activable picture in-game ?

Thanks for answering everyone !

Going to test Daemian first :

- So i create a billboard in the Level Editor and i choose my picture in "Material File" ?
- How do i attach the point light to the billboard ? CTRL + J ?


Oh okay i managed to attach it to the lamp and it's working ! But my picture is like "transparent"... Some way to fix this ? :/

Sorry for my bad english
Amnesia The Revenge - Chapter 1
(This post was last modified: 11-16-2014, 02:56 PM by narutohokager.)
11-16-2014, 02:46 PM
Website Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#7
RE: How to put a de/activable picture in-game ?

I think in the LE you can't see it when it's attached to a light. But in-game it's visible.
You gotta set the light off at OnStart() with SetLightVisible.
Then you turn it on/off whenever you want.

(This post was last modified: 11-16-2014, 05:15 PM by Daemian.)
11-16-2014, 05:14 PM
Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#8
RE: How to put a de/activable picture in-game ?

Oh okay ! 'going to test it !

Sorry for my bad english
Amnesia The Revenge - Chapter 1
11-19-2014, 08:46 PM
Website Find




Users browsing this thread: 1 Guest(s)