Hi.
I’ve encountered a problem while trying to create a new particle effect. The particle effect is smoke coming out of a rocket that gently swings left and right (like a pendulum).
Is there any way to make the particles rotate in a pendulum like fashion?
I tried with cycleAngle and angleIncr but it doesn’t seem to work as the angle always increments in the same direction.
Here’s my code so far.
[lua]------------------------------------------------------------------------------
– Rocket
rocket = {
title = “rocket”,
positionType = “atPoint”,
build = function() local size = math_random(50, 150) return display_newImageRect(“CBEffects/textures/glow.png”, size, size) end,
color = {{0, 0, 1}},
emitDelay = 30,
perEmit = 3,
inTime = 500,
outTime = 500,
startAlpha = 0,
onCreation = function§ p.changeColor(burnColors[math_random(2)], 200) end,
propertyTable = {blendMode = “add”},
physics = {
velocity = -2,
angles = {{80, 100}},
scaleRateX = 0.98,
scaleRateY = 0.98,
gravityY = 0.05
}
}[/lua]
Thanks.