uhm, rotation is entirely (couldn;t spell entirely first lol) based at the movement, if it moves up, it rotates that way, even if you are pushing down, but it's slipping.
ok, found a few bugs so far.
i will post the code i have now here
function makeParticle()
{
var depth = this.getNextHighestDepth();
var p = this.attachMovie("Particle","p"+depth, depth);
p.dir = Math.random() * 360;
p.velocity = Math.random() * 5;
p.xVel = Math.cos(p.dir * Math.PI/180) * p.velocity;
p.yVel = Math.sin(p.dir * Math.PI/180) * p.velocity;
p.count = 0;
p.onEnterFrame = function()
{
this.count += 1;
this._x += this.xVel;
this._y += this.yVel;
if(this.count > 200)
{
this.removeMovieClip()
}
}
}
function onEnterFrame()
{
makeParticle();
}
i retyped the frame code, it didn;t work.
and I changed the "speed" to "velocity", AND I added p. to the dir and speed var.
i don't understand.. do you have to put the code in the actions of the movie clip itself, the object? or in an .as file? (class Fire extends etc.) or in the first frame actions?
um,.. wtf? i tried to go to credits screen, came in debug mode and this text: award submitted: award5
award submitted: award5
award submitted: award5
award submitted: award5
award submitted: award5
award submitted: award5
award submitted: award5
award submitted: award5
award submitted: award5
award submitted: award5