Under rating threshold (hideshow)
Oh Nevermind! I was putting the code on the fire instance that was on the frame, not inside of the fire MC. It works now! Yay!
Under rating threshold (hideshow)
Particle effects, page 6 & 7. It tells me that function makeParticle(); and function (onEnterFrame) must be in a onClipEvent handler. And if I add that it doesn't work. :( Help please.
Under rating threshold (hideshow)
yeah. I found the shootorial layout template thing after I was like 95% done with this tutorial :/ what's not user-friendly about the layout? mebe I'll fix it.
Under rating threshold (hideshow)
@scoz: plenty of people still use AS2, for various reasons. It's not "dead" yet, and probably won't be for several years. In addition to that, it's easier to learn than AS3. I always recommend that newbies start with AS2, and then move to AS3, if they want.
Under rating threshold (hideshow)
@ Mato: "Truefire says: I'm probably gonna remove the laggy title screen. Tukkun says: No, lag doesn't matter, it's epic"... Blame Tukkun. But yeah, I'll probably remove it anyway.
Under rating threshold (hideshow)
Title screen is incredibly laggy. No reason you should have it, makes the whole tutorial look very unprofessional.
Effects themselves are nice though.
Under rating threshold (hideshow)
"Note: This game is listed under the TUTORIALS category of Kongregate. Pleade don’t comment something like “Not a game 1/5”… Thanks…"
Under rating threshold (hideshow)
Yeah. I can't do anything about that though. It should be displaced by better games by the end of the week though, so no worries.
Under rating threshold (hideshow)
AS2 is more newb-friendly (less strict), and, despite the fact that some (rich and/or pirate :P) coders think anything that's not the latest version should be erased from existence, many people still use AS2, for whatever reason.
Under rating threshold (hideshow)
On -The End- screen for the bitmap tutorial, you say that: You know know everything in the universe. Know x2? However, this was very informative even though I've never done programming at all.
Under rating threshold (hideshow)
Typos: [-Using Combined Objects-] = 'definitely', not 'definately'. Other than that, I think you intentionally misspelled 'the'.
Under rating threshold (hideshow)
I tried your code out wert, and it worked fine. Make sure the code is on the fire clip's first frame's actions panel. make sure you have an instance of that clip on the stage. also make sure your particle clip has something in it, and has Linkage set to "Particle"
Under rating threshold (hideshow)
Yeah, this tutorial uses the actions panel for code. It could be done in .as files with some minor adjustments, but I find the actions panel more convenient for small-scale things like this. I'll take a look at it and see if I made a mistake somewhere.
Under rating threshold (hideshow)
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.
Under rating threshold (hideshow)
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?
Under rating threshold (hideshow)
Update! Fixed the problems you pointed out marten, other than the source. I might do that within the next few days, but I'm kinda busy now. And sorry Tukkun, but I nerfed the Ninja XP you get from reading this tutorial by 40%. it was just way to overpowered.
Under rating threshold (hideshow)
Thanks for all the encouragement. Thanks for pointing those mistakes out marten, Expect them fixed when I get back in about 3-4 hours. Farmer, if you look up top, you'll notice I uploaded this to the "tutorials" section of Kongregate. Things posted here aren't supposed to be games.
Under rating threshold (hideshow)
Tutorial wise its preety good i was expecting some noob who had found a code to make particles and posted it. but u explained in detail good job,
Under rating threshold (hideshow)
but sum script errors :
u cant use function() in a movie clip use it in actions in frame . thats all :P
but i tryed to do it but failed ill hope i can do it :P