Jump to content

The 'Particle Emitter' effect doesn't start in the right place


MisterGravity
 Share

Recommended Posts

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'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

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

Link to comment
Share on other sites

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?

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

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.

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...