whether I put start() method or not my particle emitter runs the same way, So what is the use of start() method.
what does particleEmitter.start() method do in particle emitter class?
45 Views Asked by shubham At
1
There are 1 best solutions below
Related Questions in LIBGDX
- Lib GDX exported jar file does not detect assets
- LibGDX Normal Textures Not Showing Up in 3D (Blender) Model Java
- How do I resolve this rendering error with LibGDX and a Shadertoy GLSL Shader?
- Multiple TiledMap layers not rendering
- How to retain score when transitioning between Pause Scene to Game Scene?
- How to convert a text drawn using BitmapFont in LibGDX in an array of Sprites/TextureMapObjects?
- LibGDX Crashing when removing entity from its list
- How to change `Vector2` 's values in the virtual `render(delta:Float)` method of the Screen interface of com.badlogic.Gdx
- error build java project in vscodeThe project was not built due to "core does not exist". The project was not built due to "desktop does not exist"
- iOS app/game crashes with scene update failed message after launching using Libgdx and robovm
- Not able to catch errors in websocket onMessage
- Simple MMORPG - which protocol, technologies
- task superDev gives an error. Below is the result of stacktrace
- how can I fix this error? Libgdx and Gradle
- libGDX JSON File Reading Error: Unable to Load Skin Resources
Related Questions in BOX2D
- Can't resolve undefined reference to box2D C++
- Box2D not simulating
- How to create a non-standard shape in a box2d python. Namely, a figure in the shape like Г, T, Z, like in Tetris?
- Is it possible to implement interaction pybox2d and pygame
- sync of body and sprites for animation?
- How to know which side of a ChainShape is being collided with?
- Why is this object not recognized?
- Box2d body's velocity slows down without any force applied
- Why does my installation of box2d fail even though I already have swig installed
- Box2d body, preservation of b2BodyDef, b2Shape, and b2FixtureDef
- error while installing pip install gymnasium[box2d]
- Ground Box doesn't work in LibGdx and Box2D with Scene2d
- LibGDX Displaying UI elements in game world
- LibGDX camera.project() is not working properly
- My LibGDX game project is rendering only the background image
Related Questions in BOX2DLIGHTS
- Libgdx Box2D Lights, looking diffrent on android devices, strange outlines of light
- LibGdx Box2dLights: How to make Chain Lights emit light in all directions?
- (Box2dLights) Disable Light for a certain Texture?
- LibGDX - shadows don't appear
- RayHandler doesn't goes with Box2D world
- what does particleEmitter.start() method do in particle emitter class?
- why DirectionalLight is not casting shadow?
- Cone light direction Degree parameter doing nothing what ever value i give?
- LIBGDX Box2D Lights on Ios-Moe
- Box2d Lighting different behavior with different screen size
- Attaching box2dLight to scene2d.Actor
- Adding rayhandler in LibGDx causes issues in InputListener
- Libgdx Box2dLights: How to make light have a hard falloff?
- LibGDX with Box2DLights: How to fix "Array Buffer Object"-Exception?
- Access rays cast by Box2D Lights
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you look at the source code of ParticleEffect class and then look at the start method, you will see this -
Basically, this means it is going through all the emitters and calling ParticleEmitter#start method.
Now let's look into the start method of ParticleEmitter.
Basically from the method, you can see that its setting the
firstUpdateboolean to true which means "this is the first update" i.e. we will be doing something for the first time (look into the source code to see where the boolean is used)The next line, it is setting
allowCompletionto false which means, if the emitter was already in progress, don't let it complete (Check source code to see where the boolean is used)The final call is to
restart()which is self-explanatory (restarting this emitter if it was already running.)I hope that helped.