LibGDX: Particle scale

后端 未结 5 804
不知归路
不知归路 2021-01-13 08:40

In my game I use

static final float FRUSTUM_WIDTH = 10;
 static final float FRUSTUM_HEIGHT = 15;   

So when I draw the particles they take

5条回答
  •  遥遥无期
    2021-01-13 09:03

    Either you use the particle editor (to be honest I don't think it's a good idea for sizing the particles, as you mentioned the particles won't get too small (for anything else I really recommend it)) or you just open the particle effect file. It should be generated by the editor or you can copy it from the examples. In this file search the fields below:

    - Scale - 
    lowMin: 0.0
    lowMax: 0.0
    highMin: 0.6
    highMax: 0.6
    relative: false
    scalingCount: 1
    scaling0: 1.0
    timelineCount: 1
    timeline0: 0.0
    

    Adjust the highMin and highMax as needed.

提交回复
热议问题