MisterGravity Posted January 15, 2014 Share Posted January 15, 2014 This is a weird one. I created a particle emitter effect and put it where I want to be. So when I run the game, the particles are over there, somewhere, several blocks away and under where they should be... and slowly, over the course of about 15 seconds, they start appearing where I put them and stop being over there where they're not supposed to be. Is there some kind of "definitely start here" toggle I need? Quote I'm sure I'll have a million questions in my quest to master the Leadwerks Engine. Thank you for your patience. Link to comment Share on other sites More sharing options...
nate066 Posted January 15, 2014 Share Posted January 15, 2014 This is a weird one. I created a particle emitter effect and put it where I want to be. So when I run the game, the particles are over there, somewhere, several blocks away and under where they should be... and slowly, over the course of about 15 seconds, they start appearing where I put them and stop being over there where they're not supposed to be. Is there some kind of "definitely start here" toggle I need? I have the same issue Quote Link to comment Share on other sites More sharing options...
shadmar Posted January 15, 2014 Share Posted January 15, 2014 Seems like position set in editor is ignored, so it will be at 0,0,0, that has to be a bug. If you set position by script it works. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
MisterGravity Posted January 15, 2014 Author Share Posted January 15, 2014 Seems like position set in editor is ignored, so it will be at 0,0,0, that has to be a bug. If you set position by script it works. I got it's coordinates from the General tab, XYZ. How do I set it by script? Quote I'm sure I'll have a million questions in my quest to master the Leadwerks Engine. Thank you for your patience. Link to comment Share on other sites More sharing options...
shadmar Posted January 15, 2014 Share Posted January 15, 2014 You can add a script to it something like : function Script:Start() self.entity:SetPosition(0,4,0) end Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
MisterGravity Posted January 15, 2014 Author Share Posted January 15, 2014 You can add a script to it something like : function Script:Start() self.entity:SetPosition(0,4,0) end Brilliant. That worked like a charm. And I'd bet I can alter that script to be a little more universal for Particle Effects by declaring the variable as a vec3. Quote I'm sure I'll have a million questions in my quest to master the Leadwerks Engine. Thank you for your patience. Link to comment Share on other sites More sharing options...
Mebaru Posted January 16, 2014 Share Posted January 16, 2014 Oh. Could anyone do emitter tutorial with some real examples please? Quote Link to comment Share on other sites More sharing options...
MisterGravity Posted January 16, 2014 Author Share Posted January 16, 2014 Oh. Could anyone do emitter tutorial with some real examples please? You'll probably want to request that in the following thread. http://www.leadwerks.com/werkspace/topic/8103-gameplay-tutorial-requests-here/ Quote I'm sure I'll have a million questions in my quest to master the Leadwerks Engine. Thank you for your patience. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.