How to scale a particle system?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
liyonglove2d
Prole
Posts: 38
Joined: Sun Mar 29, 2015 7:06 am

How to scale a particle system?

Post by liyonglove2d »

Snap of the game:
fire.png
fire.png (111.77 KiB) Viewed 1113 times
The campfire is simulated by a particle system, and I want the flame size to decrease over time. But I don't know how to scale the particle system.
I know how to achieve this by canvas. But I'm wondering whether there's a direct way.

THANKS~ :)
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: How to scale a particle system?

Post by s-ol »

liyonglove2d wrote:Snap of the game:
fire.png
The campfire is simulated by a particle system, and I want the flame size to decrease over time. But I don't know how to scale the particle system.
I know how to achieve this by canvas. But I'm wondering whether there's a direct way.

THANKS~ :)
You can scale it down with :setSizes() and :setSpeed()

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: How to scale a particle system?

Post by davisdude »

You could try using love.graphics.push and friends.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
User avatar
liyonglove2d
Prole
Posts: 38
Joined: Sun Mar 29, 2015 7:06 am

Re: How to scale a particle system?

Post by liyonglove2d »

Thanks, both good ideas.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests