-
Posts
517 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Everything posted by Genebris
-
[Lua] Import Script Into Multiple Other Scripts
Genebris replied to Phodex Games's topic in Programming
It simple, just make this script and import this into main.lua at the very beginning: spellEffects={} function spellEffects:CastSpell(something) . . . end Then you can call spellEffects:CastSpell() anywhere in your game and you don't need multiple scripts or importing. -
[Lua] Import Script Into Multiple Other Scripts
Genebris replied to Phodex Games's topic in Programming
Yes, it's not possible that way. I had the same question here: http://www.leadwerks.com/werkspace/topic/10616-importing-one-script-into-two-different-scripts/ Take a look how default AnimationManager script functions. You can do the same thing. Or maybe just use global table with all your effects, this will be simpler actually. And you won't need to import any scripts anywhere. -
There is a pick mode option in the material settings.
-
Putting a script on my player removes their shadow
Genebris replied to graycontrast's topic in Leadwerks Engine Bug Reports
There are animated and not animated versions of diffuse+normal shader, you need one from model/animated folder. -
There are two values at the beginning of the shader, cutoff and overdrive, change them.
-
How to generate random x value from a given Seed ?
Genebris replied to Slastraf's topic in Programming
math.randomseed(os.time())- 5 replies
-
- 1
-
- procedual
- generation
-
(and 1 more)
Tagged with:
-
How to generate random x value from a given Seed ?
Genebris replied to Slastraf's topic in Programming
I guess you are looking for default Lua math.randomseed() function.- 5 replies
-
- 1
-
- procedual
- generation
-
(and 1 more)
Tagged with:
-
In-engine particles always look ugly, I wanted something prerendered, it's basically the only way.
-
No, I need an animation.
-
Can anyone suggest a good software to render blood sprite sheet like in this demo? I have tried in Blender, but it's fluid simulation seems so inconvenient. I guess you can't even make it splash without actually dropping something into the water.
-
Exactly. In my opinion minimum specs should be able to run the game at 60 fps (or 50 at least) on lowest possible settings. I'm not paying for a game to be able to launch executable file, I'm paying to be able to have good experience.
-
Need help - Platformer controller & some lighting troubles
Genebris replied to REX-RUS's topic in Programming
Make controller yourself and attach model to it as a child. Also, I see that your light is set to static. -
Everyone has it.
-
Need help creating projectiles for a platformer
Genebris replied to graycontrast's topic in Programming
self.Fire() is also correct, but it doesn't send "self" to a function which resulted in your errors. When you use "self:Fire" you make "self" accessible inside this function.- 8 replies
-
- projectile
- generation
-
(and 1 more)
Tagged with:
-
Needing an ironsights script for my game please?
Genebris replied to metaldc4life's topic in Programming
You don't need any scripts, just place two pivots for regular weapon position and iron sights position. Then move your weapon between these pivots. -
Need help creating projectiles for a platformer
Genebris replied to graycontrast's topic in Programming
Prefab:Load returns created entity.- 8 replies
-
- projectile
- generation
-
(and 1 more)
Tagged with:
-
Need help creating projectiles for a platformer
Genebris replied to graycontrast's topic in Programming
Prefab:Load and Script:Collision - this is all what you need.- 8 replies
-
- projectile
- generation
-
(and 1 more)
Tagged with:
-
Yes
-
I would make legs of the turrents parent and rotating part child, othervise base of the turret will rotate with it's top. Just attach a top part as a child in Blender and export them both, they will come as a combined model.
-
You probably want to make specular color darker and the second version actually looks nice, just reduce normal intensity a little.
-
I have only used Shadmar's solution and it's amazing. Solution by Mattline1 requires messing with C++ and I don't even have VS on my PC at the moment because I'm limited on space on system drive so that's a problem for me for now, while Shadmar's PBR just replaces some shaders and everything works.
-
If you need realtime then you need to render each frame, so yes, camera.
-
Why don't you just rotate the camera depending on player position?
-
Just offset a camera with small random value every frame. camera:SetPosition(camera.position + Vec3(Math.Random(-0.1,0.1), Math.Random(-0.1,0.1), Math.Random(-0.1,0.1)))
-
Disable sandbox in editor settings.