ur looking at it ^.^
Just go to the tutorial section.
ur looking at it ^.^
Just go to the tutorial section.
I find that a tute with a fla is a lot better than a tute without, just because if you don’t understand a step at least you will have a working fla and you can trace back a few steps to see what it is ur actually supposed to do, btw fantastic tute though
Ok guys im a newb to actionscript (please don’t get mad if i don’t understand). Do you create a frame where you make a character, make him sway his arms and legs when he moves and save it as a movie clip?
But how i put buildings?
It still walks from everytihing(everything)
Yes.
And then right-click it and select actions.
it walks still throught buildings. how can i made buildings from buildings?
Other question is where i put those buttons (goto class(buy beer)
is there something movie clip or just frame
I animated my guy to walk forward and sway his arms, but when i test it, he doesn’t sway.
hey lucas92 you dont need any actionscript to make the guy stop his animation when you let go of the key, i thought of trying something and it worked! i edited the mans symbol, making it that on the first frame of his animation, i put stop();
on the first frame of his animation, apart from that, this tutorial is really bloody awesome, thanks denacioust!
Ok guys…for all of the people that have hitTesting problems! You want to test where your character is going to be, not where he is. The easiest way to do so is by a function. So put this in:
function walkTo(X:Number, Y:Number):Void{
if(!_root.buildings.hitTest(_x+X,_y+Y,true)){
_x += X;
_y += Y;
}
}
And replace that function for the script you use to move your guy. For example:
if(Key.isDown(37)){//Don't use this
_x -= 5;
}
…But use this:
if(Key.isDown(37)){//Use this
walkTo(-5,0);
}
It’s what I use, it’s what I’ve been using, and it’s what I will always use. It’s the best code there is. You can figure out another code, but try to detect where the guy will be, not where he is!
OH…and put all the buildings into one MovieClip…if you use my method.
denacioust, if your here still, could you refurbish the tut to use all this code?
if not anyone else up to it?
I’d love to…I have made TONS of RPGs, mostly art-based, so artists out there can use their art to an advantage. Problem is, it might take me a little while because of school and stuff…plus I got summer school. I’ll do it if denacioust wouldn’t like to…
I am contemplating writing my own rpg tut soon (next holidays)
:: Copyright KIRUPA 2024 //--