Problem using Freeze() ?

I have a problem using Freeze() when clicking the pause button in my game.

The message I get in the terminal window is ‘attempt to call global ‘Freeze’ a nil value’

I tried Freeze() on its own and also Freeze(snowEffect), with snowEffect being the name of the particle effect’s function.

I have the Particle Effect’s root folder included and the snow effects are working fine.

I’m no doubt missing something simple here. I’d be grateful for any pointers/advice on this from more experienced users/creators of Particle Candy.

Kevin :slight_smile: [import]uid: 12941 topic_id: 11983 reply_id: 311983[/import]

If you used, say,
local particles = require(“lib_particle_candy”)
to include Particle Candy in your app, then to call Freeze you’d need to use particles.Freeze() not just Freeze(). [import]uid: 9422 topic_id: 11983 reply_id: 43720[/import]

Thanks XenonBL,

That explains it - great!

I haven’t been using Particle Candy for long, so this helps me get going. I’ll follow this advice.

Thanks again buddy :slight_smile: [import]uid: 12941 topic_id: 11983 reply_id: 44909[/import]