3,804 Forum Posts by "Sam"
try making a word document with all the simple codes on, and soon, if you keep scripting, they will just stick in your mind.
I usually go with the simple way when doing things. If i get to complicated I just mess up later on. But i guess we all have different opinions. But if he doesnt know AS, or is just starting out. I wouldnt give him a code like that, chances are hes just gonna copy and paste it and learn nothing.
stop();
No, but seriously. I didnt start AS from a book or anything. I started from AS: Main
Look at my tutorial which i did quite a while back. Buying books, id say, is pointless.
I honestly wouldn't bother.
Goto AS: Main, its much easier and you dont waste a penny.
I also just google my questions.
Lol, tah fer giving him the correct code.
I didnt quite understand his question :P
Use frame labels
if(root.score==30){
gotoAndPay("My Frame Label")
}
Put a label on the frame you want it to play
gotoAndPlay(#)
Then, make the frame a certain frames long, and it should stay on that frame for a certain time, then, on the last frame of it put, gotoAndPlay(#)
The music what the beastie boys - fururama rap thing or summit
Ok, me and Shadowfish26 have everything working for the inventory. But, we want it so your able to drop items. I honestly expected my current code to work,
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.gotoAndStop(2);
} else {
gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
onMouseDown = function () {
if (this._currentframe == 2) {
_root.addToslot(this);
this.gotoAndPlay(3);
} else {
this.gotoAndPlay(1);
}
};
}
on (press) {
if (_root.item._currentframe == 3) {
_root.item._x = _root.player._x;
_root.item._y = _root.player._y;
}
}
You see, you have to actually walk up to the item, and click on it to pick it up. Then, when you click it while its at frame 3, (when you click it from the ground), it SHOULD go back on the ground. But, it doesnt even go to the item slot, it just goes straight to players x and y axis.
Ok, me and Shadowfish26 have everything working for the inventory. But, we want it so your able to drop items. I honestly expected my current code to work,
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
this.gotoAndStop(2);
} else {
gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
onMouseDown = function () {
if (this._currentframe == 2) {
_root.addToslot(this);
this.gotoAndPlay(3);
} else {
this.gotoAndPlay(1);
}
};
}
on (press) {
if (_root.item._currentframe == 3) {
_root.item._x = _root.player._x;
_root.item._y = _root.player._y;
}
}
You se, you have to actually walk up to the item, and lcick on it to pick it up. Then, when you click it while its at frame 3, (when you click it from the ground), it SHOULD go back on the ground. But, it doesnt even go to the item slot, it just goes straight to players x and y axis.
The thing is, will you be able to make it?
*bump again* (sorry, i really need some help)
function addToslot(item) {
if (!item.found) {
item._x = eval("itemSlot"+currentslotnum)._x;
item._y = eval("itemSlot"+currentslotnum)._y;
item.found = true;
currentslotnum++;
}
}
Theres the addToSlot function ;)
At 5/21/06 03:13 PM, -Shampoo- wrote:At 5/21/06 02:38 PM, TheHellScorpion wrote:probably puts it into a compack file.(like a Winzip compack file) but i'm not sureAt 5/21/06 02:32 PM, jmtb02 wrote: File> Save and Compactwhat does the save compact do?
Also, open your library, sort by type, and make sure you have no duplicate sounds in size or name.
I believe Save And Compact deletes all the little files that you thought you deleted, but are still there at around like 1kb or something.
i usually use
unloadMovie();
But i dont think that will fix yer problem.
I need some help with hierarchy. Ive looked at the AS thread. Read it throught, but it doesnt seem to be workign for me.
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)){
_root.inventory.itemSlot1.addToslot(this);
}
}
This is the code I have on the item.
But, it just doesnt work, I'd like the item to go to itemSlot1 which inventory is parent to.
Why not just put this on the movieclip(s) you want to drag ...
on(press){
startDrag(this);
}
on(release){
stopDrag();
}
I believe thats what you wanted lol, if not, just say :P
Id love to help! Though i am not a great animator, I can animate quite well and id be happy to show you some work.
MSN - Saza066@hotmail.com
Aim- Shadowchilla
I believe it does
Well....
Shivers - And there scary cartoon ghost monsters
Myst - Teh horrid noises! D: Seriously... even though i couldnt get past the first bit.
Diablo - THE BUTCHER!!! :(
yes.. there old... ^^
At 5/15/06 08:09 AM, Dogmega wrote: I am not really a dog.
How could you lie to me all this time!!!
Confessions.... I joined NG when i was 11.. ^^
AND I have a trampoline.. thats right.. i admit it! *cries* D:
At 5/15/06 08:32 AM, Another_Knight wrote: hahahah.................666 flipped upside down is something like ppp.
Actually, 999. The England emergancy number. And, ive read through most posts, and acccording to some, 616 is satan.
Also, many stated before it will be 06/06/06
This is very true, there are 2 digits in the maximum days of each month, so there will have to be a space saver there, hence the 0. Same with the month. And the year is 2006, the last to numbers must be placed on the date, "06".
In the US they put the month first (i believe). Here in england we put the day first.
I guess they used 666 because, even if the month and day are swapped round, its still the same.
Just my view on it
Id like to join, considering that your not full up on artists.
I have past experiance on anatomy and such. Though i usually draw more cartoony but, set me something, and i most of the time i can draw it :P
Ill try and dig up some examples of my work =]
1) DBarbarian-Entry 2
2) Hoeleo-Entry 1
3) -Evan-
4) DBarbarian-Entry 1
5) Depredation
Also, when you right click it says "Dont cheat" or something. WHats there to cheat on?
Its only a few tweens and some buttons.

