-
Posts
333 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by lxFirebal69xl
-
-
So, I want the player to enter a collision trigger and that trigger makes it shows a picture, kind of like this script for text but instead of text, it shows a picture. How can I do this?
Script.ObjectDescription = "" --String "Object Description"
Script.DisplayTimeMax = 5000 --Int "Display time"
Script.Used = "0"
Script.DisplayTime = 0
Script.DisplayEnabled = false
local font1 = Font:Load("Fonts/True Lies.ttf", 20)
function Script:Use(context)
self.Used = "1"
self.CurrentTime = Time:GetCurrent()
self.DisplayTime = Time:GetCurrent() + self.DisplayTimeMax
end
function Script:PostRender(context)
if self.Used == "1" then
App.context:SetBlendMode(Blend.Alpha)
App.context:SetFont(font1)
self.DisplayEnabled = true
if self.DisplayEnabled == true then
if self.DisplayTime > Time:GetCurrent() then
App.context:SetColor(255,255,255)
context:DrawText(self.ObjectDescription, 100, 600)
else
self.DisplayEnabled = false
self.Used = "0"
end
end
App.context:SetBlendMode(Blend.Solid)
end
end
-
As the title says, how would I do this?
For example, a player using a switch and a key appearing on top of a table, and the key wasn't there before.
-
How did you make the barrels move by themselfs?
-
This update looks amazing, the pixologic team is basically making things only possible in maya and 3ds max possible in zbrush. Goodbye social life.
- 1
-
Wow Liam, this is awesome, thank you so much
-
Allright, I'll go have a look on how to uv map models since I'm pretty new to all of this.
Thank you all for the answers!
-
Just tried it and it dind't work either, still no textures on the model.
-
Well, there is no "textures" file with the models, so there's nothing I can do to get the textures separately? Like export them in blender or something?
-
how to convert them to .tex files.
I'm well aware that google exists, and I've been searching through forums for a solution on how to convert the .mdl files to .tex files.
When I import the model into blender it has the textures but when I export the model in an .fbx file it doesn't have textures<---I want the fix for this.
Sorry if I came off as uninformative.
-
Yea but the problem is that the textures are in a .mtl format, and I have no idea how to convert them to .tex files.
-
You can use Blender to import obj, than export to Fbx.
That's what I did, but the model in leadwerks doesn't have textures.
-
I'm just wondering if there's a way to actually import a .obj file and the .mtl, since I'm still pretty new to this whole thing. If this is impossible however, how can I import the files so they work together?
-Fire
-
Thank you all very much for the responses. Appreciate it!
I got it working and it looks pretty awesome!
-
Thanks for the answer but, now everytime I run the game there's a black screen that says "Leadwerks". Again, I'm pretty new to Lua, so I really don't know how to put the text to show up only when the player interacts with the object.
-
Exactly what the title says, how can I have assets in game that the player is able to use and text shows up? Kind of like how in some horror games the player clicks an object and the main character talks about it and text shows up. I'm a LUA noob, so I apolozige in advance if this is a dumb question.
Thanks for reading
-Fire
Collision trigger a picture?
in General Discussion
Posted
I was talking about the player entering the zone and the picture would show up. Looks like this one only works for when a player uses an objectand it only shows up with a black box on the corner, no actual picture shows up