Forum Topic: Look at this!!!!

(15,157 views • 1,050 replies)

This topic is 36 pages long. [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 92236 ]

<< < > >>
Thinking

Fargate

Reply To Post Reply & Quote

Posted at: 12/8/02 03:49 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

At 12/8/02 01:47 PM, pimpedoutplayer2 wrote: how do you make it were he can jump fire his gun and walk left right up and down?

Apart from firing his gun, all those answers are in the 5 or 6 first posts of this thread. For firing his gun, you need to use a if statement and define which key is hit so: If(key.(whatever) goto and play MC "blah".


None

titbread

Reply To Post Reply & Quote

Posted at: 12/8/02 05:26 PM

titbread LIGHT LEVEL 14

Sign-Up: 12/02/00

Posts: 2,285

Thats cool man.


None

FlashChicken

Reply To Post Reply & Quote

Posted at: 12/8/02 07:34 PM

FlashChicken LIGHT LEVEL 08

Sign-Up: 07/11/02

Posts: 36

Hey this is a nice little thread, I wish I had found it sooner, this would have come in really handy a few days ago, but oh well thats life I guess.

Well anyway fargate, I have a question - you are obviously quite good at this, so why don't you have any movies/games of your own on the portal?, It seems like such an awful waste of talent, and talents somthing the portal could always to with more off. (I swear if I see another poorly drawn stick movie I'm going to kill my self lol)


Angry

Fargate

Reply To Post Reply & Quote

Posted at: 12/8/02 07:54 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

At 12/8/02 07:34 PM, ZombieChicken wrote: Hey this is a nice little thread, I wish I had found it sooner, this would have come in really handy a few days ago, but oh well thats life I guess.

Well anyway fargate, I have a question - you are obviously quite good at this, so why don't you have any movies/games of your own on the portal?, It seems like such an awful waste of talent, and talents somthing the portal could always to with more off. (I swear if I see another poorly drawn stick movie I'm going to kill my self lol)

I've tried. I may be good with scripts but I hate to admit that my graphics are pretty poor, or maybe people just don't like my style. Anyways, I've tried. It get's blammed by those dumbasses out there. And I'm not talking about a dumb stick movie, I'm talking 50 hours + work here.


None

Spardadmc

Reply To Post Reply & Quote

Posted at: 12/8/02 10:07 PM

Spardadmc EVIL LEVEL 04

Sign-Up: 12/05/02

Posts: 9

im pretty decent with flash but lack some basic knowlage: how do u moph tween or somthing like that?


None

kode0001

Reply To Post Reply & Quote

Posted at: 12/8/02 10:09 PM

kode0001 LIGHT LEVEL 17

Sign-Up: 02/07/02

Posts: 202

another way to move that some people prefer

_____________________________________________________
moveamount=10;
this._x=+ Key.isDown(Key.RIGHT)*moveamount-Key.isDown(Key.LEFT)*moveamount;
this._y=+ Key.isDown(Key.DOWN)*moveamount-Key.isDown(Key.UP)*moveamount;
_____________________________________________________


Happy

Fargate

Reply To Post Reply & Quote

Posted at: 12/8/02 10:40 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

At 12/8/02 10:07 PM, Spardadmc wrote: im pretty decent with flash but lack some basic knowlage: how do u moph tween or somthing like that?

Ah Shape Tweening? Very simple. You have your two objects. The original object and then the object you want the original one to morph into.Then you place them a certain distance apart just like in motion tweening and then you select the frames and goto Frame panel ( that's with all the other ones: Effect,Instance,Sound...), and select shape from the Tweening pull down menu. And Voila!


None

kode0001

Reply To Post Reply & Quote

Posted at: 12/8/02 11:22 PM

kode0001 LIGHT LEVEL 17

Sign-Up: 02/07/02

Posts: 202

hmm i dunnno if this has been posted yet but...

Platform Game(Simple)
____________________________________________________
onClipEvent (load) {
moveamount = 10;
// how much to move
gravity = 1.3;
// how fast to fall
jumpHeight = 5;
//how high to jump
}
onClipEvent (enterFrame) {
old_x_object = this._x;
// rember its x before movement
old_y_object = this._y;
// rember its y before movement
if (Key.isDown(Key.up)) {
// Up
if (jump) {
yspeed = yspeed-jumpHeight;
// falling
jump = false // no jump;
}
}
yspeed = yspeed+gravity //going down;
y = this._y+yspeed // set y var;
if (_root.back.hittest(this._x+31, y+30, true) /* see if hit ground*/) {
if (yspeed<0) {
// hit roof
} else {
// hit floor
jump = true //allow some jumping;
}
yspeed = 0// no more fall;
} else {
this._y = y //reset y var;
}
this._x = this._x + Key.isDown(Key.RIGHT) * moveamount - Key.isDown(Key.LEFT) * moveamount;
// move left and right
if (_root.back.hitTest(this._x+30, this._y+30, true) or _root.back.hitTest(this._x-30, this._y-30, true)) {
this._x = old_x_object;
// dont allow it to move x
this._y = old_y_object;
// dont allow it to move y
}
}

//now my player MC was 60x60 pixels and i made my BG MC with the instance name "back"
____________________________________________________
hmm maybe some mistakes but this window is too smale for me to really check it all....


Thinking

EviLudy

Reply To Post Reply & Quote

Posted at: 12/9/02 02:13 AM

EviLudy LIGHT LEVEL 39

Sign-Up: 08/17/02

Posts: 4,525

Both jumping scripts i found on this page did not work, and i did make a MC named ground and putted it on a right place, whats wrong?

Swing a Little more!
.. ROCK OUT!

BBS Signature

None

FlashChicken

Reply To Post Reply & Quote

Posted at: 12/9/02 07:02 AM

FlashChicken LIGHT LEVEL 08

Sign-Up: 07/11/02

Posts: 36

At 12/8/02 07:54 PM, Fargate wrote:
At 12/8/02 07:34 PM, ZombieChicken wrote: Hey this is a nice little thread, I wish I had found it sooner, this would have come in really handy a few days ago, but oh well thats life I guess.

Well anyway fargate, I have a question - you are obviously quite good at this, so why don't you have any movies/games of your own on the portal?, It seems like such an awful waste of talent, and talents somthing the portal could always to with more off. (I swear if I see another poorly drawn stick movie I'm going to kill my self lol)
I've tried. I may be good with scripts but I hate to admit that my graphics are pretty poor, or maybe people just don't like my style. Anyways, I've tried. It get's blammed by those dumbasses out there. And I'm not talking about a dumb stick movie, I'm talking 50 hours + work here.

Thats a shame, the trouble with newgrounds is people can be very biased with their votes My movies a great example of this, I submited 8-bit arena way back in August and the last time I checked it had a score of over 3, and Its really not that a good movie, I've seen many movies that are much better than mine get blammed. I think at the end of the day if its somthing people can relate too then they will vote high if not then they wont, regardless of whether its crappy or not. (All the final fantasy fans on newgrounds must have seen mine lol)


Shouting

Fargate

Reply To Post Reply & Quote

Posted at: 12/9/02 05:40 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

At 12/9/02 02:13 AM, eviLudy wrote: Both jumping scripts i found on this page did not work, and i did make a MC named ground and putted it on a right place, whats wrong?

Did you give it a name, in the sense of Label? First are do you know what LABELLING is? Gives MC's an identity. I am not talking about the name you give the clip when you make it. This is different.


Angry

Fargate

Reply To Post Reply & Quote

Posted at: 12/9/02 05:43 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

Thats a shame, the trouble with newgrounds is people can be very biased with their votes My movies a great example of this, I submited 8-bit arena way back in August and the last time I checked it had a score of over 3, and Its really not that a good movie, I've seen many movies that are much better than mine get blammed. I think at the end of the day if its somthing people can relate too then they will vote high if not then they wont, regardless of whether its crappy or not. (All the final fantasy fans on newgrounds must have seen mine lol)

Yup. It's really tough. Sometimes people just blam for the fun of it.I use a general rule to never blam something unless someone put NO and I mean No effort into something.


None

Spardadmc

Reply To Post Reply & Quote

Posted at: 12/9/02 06:03 PM

Spardadmc EVIL LEVEL 04

Sign-Up: 12/05/02

Posts: 9

Thanx fargate


Happy

The-Raven

Reply To Post Reply & Quote

Posted at: 12/9/02 09:35 PM

The-Raven EVIL LEVEL 17

Sign-Up: 08/26/02

Posts: 327

Thanks for the scripting guys, it helps substantially for those of us who are lazy :)


Thinking

Fargate

Reply To Post Reply & Quote

Posted at: 12/10/02 06:43 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

Here's something to clear up everything about confusion about jumping, and platforms and blah blah blah. :).

Side to Side Movement Script (Place in Character MC)______________________________________________________
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._x+=5;
} else if (Key.isDown(Key.LEFT)) {
this._x-=5;
}
}

Jumping Script
___________________________________
* Don't forget to label MC "ground" if using exact script and place this script in your character MC!!!!

onClipEvent (load){
vel_y = 0;
jumping = false;
}
onClipEvent ( enterFrame){
if (Key.isDown(Key.SPACE) && !jumping) {
vel_y =20;jumping = true;}
if (jumping == true) {
vel_y -=1;
if ( vel_y <=-10){ vel_y=-10;}
this._y -= vel_y;}
if (_root.ground.hitTest (this._x,this._y+45,true))
{vel_y = 0; jumping = false;}
}

Note: This script includes the Platform idea. Make an MC that is a line or whatever your character will start(e.g. the ground in your game) of on when the game starts and label it "ground". This is not the name you give the MC when making it, the one you see in your library. This is different. Open the instance panel and select the MC. This info should show:

Behavior: Movie Clip
Name: (THIS IS WERE YOU PUT YOUR LABEL NAME OF YOUR MC)

I'm Sorry if this is boring the more advanced,but I don't want to repost a million times. Labelling basically gives your MC an identity that the script in your Character MC can identify it.

Ok I'm sorry for that rambling tangent. Back to the point. So after you've put the jumping script in your MC and labelled your other MC properly, say your MC which is supposed to be the ground, from the script I've given you the other Ground MC should be solid to your character. You can jump up and down on it as much as you want, you won't go through.

Ok Well, I really hope this helps seeing as I spent a hell of a long time typing, and If anything about this is unclear or you have any other questions,please post again!!!!!

Note: For those who don't know what MC stands for, it's "Movieclip"

~Fargate


None

Lunarian-Hero

Reply To Post Reply & Quote

Posted at: 12/10/02 08:09 PM

Lunarian-Hero NEUTRAL LEVEL 04

Sign-Up: 12/31/01

Posts: 5

Man, actionscript is hard! I found a website with a bunch of actionscript tutorials, and the beginer courses started going over my head.

My question: Is actionscript reqired to make flash movies, or is it just games?

I'm trying to make a flash movie with just frame-by-frame, motion tweens, and maybe buttons(still experimenting, trying to get the hang of the mentioned effects), but if actionscript is reqired to make a simple, below-average movie, I'll have to kill myself, then learn it, and I'll have to spend a year or so just learning actionscript before I can send my first movie to the portal to be blamed.

Thanks for your anwser, good or bad. I'm hoping actionscript is only needed for games.


Shouting

Fargate

Reply To Post Reply & Quote

Posted at: 12/10/02 08:33 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

At 12/10/02 08:09 PM, Lunarian_Hero wrote: Man, actionscript is hard! I found a website with a bunch of actionscript tutorials, and the beginer courses started going over my head.

My question: Is actionscript reqired to make flash movies, or is it just games?

I'm trying to make a flash movie with just frame-by-frame, motion tweens, and maybe buttons(still experimenting, trying to get the hang of the mentioned effects), but if actionscript is reqired to make a simple, below-average movie, I'll have to kill myself, then learn it, and I'll have to spend a year or so just learning actionscript before I can send my first movie to the portal to be blamed.

Thanks for your anwser, good or bad. I'm hoping actionscript is only needed for games.

Sorry Bad Luck. You need Actionscript for just about everything. The bright side: Well, a movie requires pretty basic actionscript which takes hardly any time to understand. And Also I took up flash about two years ago. Then I dropped it and didn't take it up again till this past july. Look what I know. I've taught myself all of it. It's really not that heard. Some patience and some time. It will all fall together even though it may be frustrating in the beginning. So, the basic commands you need to know for movies are the "play", "Stop", and "Goto" commands. You know those: Your set to make a movie. Anyways, just go and post In my Newb Thread If you want anymore help. This Thread is really meant for the more advanced.


Shouting

Fargate

Reply To Post Reply & Quote

Posted at: 12/10/02 08:35 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

Something I've really forgot to mention up to now. This thread really should be for anything concerning flash. Not just strictly scripts. If you have handy tips or tricks for flash, please post them, or anything else that might be a help.thx.

~Fargate


None

The-SKullkid

Reply To Post Reply & Quote

Posted at: 12/11/02 12:01 AM

The-SKullkid EVIL LEVEL 04

Sign-Up: 11/29/02

Posts: 8

shit man wish i looked at this sooner cuz i just lost my flash today and right after i lose it i found this!!! my life sucks

btw if ne one knows were to get a cracked flash 5 for MAC please let me know!!! (Captain_Stabin@hotmail.com)i know were to get ones for windows but i ahve a mac again let me know if you have/know were to get cracked flash 5 fro MAC!!!


None

The-SKullkid

Reply To Post Reply & Quote

Posted at: 12/11/02 12:22 AM

The-SKullkid EVIL LEVEL 04

Sign-Up: 11/29/02

Posts: 8

ok i know i dont have flash but i might know a way to reset the trial (no not set the date back) but ne ways onto my question..how do you make words change into other words like have Newgrounds transform into Grounds Gold..?


None

kode0001

Reply To Post Reply & Quote

Posted at: 12/11/02 06:26 PM

kode0001 LIGHT LEVEL 17

Sign-Up: 02/07/02

Posts: 202

make the words and then go to modify>break apart I have to break it apart 2 times in MX but make it break until its a bitmap, then do the same to the word you want them to change to, move them apart how ever many frames you want it to change then select all the frames and do a shape tween if u dunno what a shape tween is just look up


None

ChocolateChipClock

Reply To Post Reply & Quote

Posted at: 12/11/02 06:44 PM

ChocolateChipClock NEUTRAL LEVEL 19

Sign-Up: 08/16/02

Posts: 4,139

At 12/11/02 12:22 AM, The_SKullkid wrote: ok i know i dont have flash but i might know a way to reset the trial (no not set the date back) but ne ways onto my question..how do you make words change into other words like have Newgrounds transform into Grounds Gold..?

AAAAAAAAAAAAAAAHHHHHHHHHHHHHH, this is the fourth time i have tried to type this and it just deletes itself for no reason, i HAVENT TAKEN MY FUCKING PILLS, AND I AM READY TO RIP OUT SOMEONES SPINE AND PLAY DREIDLE WITH IT! BUT I WILL TELLU ANYWAY, OKAY, SORRY IF I MIGHT HURT YOUR MOTHER FUCKING FEELINGS, BUT DEAL WITH IT. FIRST MAKE THE TEXT. THEN, BREAK THE TEXT (CTRL + B)! THEN, GET YOUR FUCKING MOUSE, SELECT FRAME TWENTY, MAKE IT A KEYFRAME, GROUP THE TEXT ON FRAME 20, CHANGE THE TEXT TO WHATEVER U WANT IT TO SAY, BREAK THE TEXT, THEN, MAKE IT A SHAPE TWEEN, DID U UNDERSTAND DAT!


Happy

Fargate

Reply To Post Reply & Quote

Posted at: 12/11/02 07:09 PM

Fargate LIGHT LEVEL 09

Sign-Up: 10/30/02

Posts: 229

At 12/11/02 06:44 PM, IamGod666 wrote:
At 12/11/02 12:22 AM, The_SKullkid wrote: ok i know i dont have flash but i might know a way to reset the trial (no not set the date back) but ne ways onto my question..how do you make words change into other words like have Newgrounds transform into Grounds Gold..?
AAAAAAAAAAAAAAAHHHHHHHHHHHHHH, this is the fourth time i have tried to type this and it just deletes itself for no reason, i HAVENT TAKEN MY FUCKING PILLS, AND I AM READY TO RIP OUT SOMEONES SPINE AND PLAY DREIDLE WITH IT! BUT I WILL TELLU ANYWAY, OKAY, SORRY IF I MIGHT HURT YOUR MOTHER FUCKING FEELINGS, BUT DEAL WITH IT. FIRST MAKE THE TEXT. THEN, BREAK THE TEXT (CTRL + B)! THEN, GET YOUR FUCKING MOUSE, SELECT FRAME TWENTY, MAKE IT A KEYFRAME, GROUP THE TEXT ON FRAME 20, CHANGE THE TEXT TO WHATEVER U WANT IT TO SAY, BREAK THE TEXT, THEN, MAKE IT A SHAPE TWEEN, DID U UNDERSTAND DAT!

Someones a little cranky. Anyways heres another cool script for everyone.

angle = _root.thing._rotation
if(angle<0){angle=Math.abs(angle)+180}
if(angle >= 270){
angle=90-(angle-270);
xthing = -5
ything = 5
} else if((angle<=271)&&(angle>180)){
angle-=180;
xthing = -5
ything = -5
} else if((angle<=181)&&(angle>90)){
angle=90-(angle-90);
xthing = 5
ything = 5
} else if((angle>=0)&&(angle<90)){
xthing = 5
ything = -5
}

_root.thing._x = (/:speed*xthing*Math.sin(Math.PI/180*angle))+_root.thing._x;
_root.thing._y = (/:speed*ything*Math.cos(Math.PI/180*angle))+_root.thing._y;
if(Key.isDown(Key.UP)){
if(/:speed < 3){
/:speed *= 1.1
}
if(/:speed < .3){
/:speed = .3
}
} else if(Key.isDown(Key.DOWN) and /:speed > .2){
/:speed *= .9
}
if(/:speed < .2){
/:speed = 0
} else if(/:speed > 3){
/:speed = 3
}
if(Key.isDown(Key.LEFT)){
_root.thing._rotation -= 5
} else if(Key.isDown(Key.RIGHT)){
_root.thing._rotation += 5
}

This is basically like the other car script, but this one incorporates acceleration. Down arrow: Car slows down, Up arrow car speeds up. If you press down long enough it brakes.

Procedure: Create a blank movie clip and in the first frame PLACE THIS SCRIPT. Then make a second in your MC and put a Goto and Play Frame 1 thingy. BOTH FRAMES SHOULD BE BLANK. Then go back to the main timeline and create your car MC or whatever it is you want to drive around, and make sure you label it "thing" if your using this EXACT script. Then make sure you have a copy of your MC with all the actions in it along with your Car or whatever other MC you've made, on stage. And Presto,Preview to admire your working car.

~Fargate


Happy

The-SKullkid

Reply To Post Reply & Quote

Posted at: 12/11/02 08:41 PM

The-SKullkid EVIL LEVEL 04

Sign-Up: 11/29/02

Posts: 8

PRELAODER SCRIPT(ADVANCED [BYTESLOADED/TOTAL, PERCENT, AND LAOD BAR])

// Specify how many frames to load before playing.
var loadAmount = _totalframes;
// If the required number of frames have finished loading...
if (_framesloaded == loadAmount) {
// ...start the movie
gotoAndPlay ("beginMovie");
} else {
// ...otherwise, display the load status
// then go back and check load progress again.
// First, determine the loaded and total kilobytes.
loaded = Math.round(getBytesLoaded()/1024);
total = Math.round(getBytesTotal()/1024);
percent = Math.round((loaded/total)*100);
// Display the loaded kb, total kb, and percentage of
// kb loaded in text fields.
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent+"%";
// Set the width of the loadBar to a percentage of
// the loadBarHousing.
loadBar._width = loadBarHousing._width*(percent/100);
// Now go back and check load progress.
gotoAndPlay ("loading");
}


Questioning

The-SKullkid

Reply To Post Reply & Quote

Posted at: 12/11/02 11:53 PM

The-SKullkid EVIL LEVEL 04

Sign-Up: 11/29/02

Posts: 8

ok i have 4 gifs i wanna use in my rpg (of a guy walking north,south,east,and west) and i want to make it when you press right if shows the gif of the guy walking west how would you do that?


Questioning

XTC2k2

Reply To Post Reply & Quote

Posted at: 12/12/02 11:58 AM

XTC2k2 EVIL LEVEL 06

Sign-Up: 08/01/02

Posts: 24

hey fargate i didnt understand the instructions for the new race car scripting...couldya say it again in more detail please? :)


None

Andrew-Traviss

Reply To Post Reply & Quote

Posted at: 12/12/02 01:38 PM

Andrew-Traviss NEUTRAL LEVEL 20

Sign-Up: 11/23/02

Posts: 48

Hey, Fargate, it's cool that you are making a thread like this, but just handing out snippets of code isn't going to help people learn very well. You should include a more detailed explanation of how your code works.

Your method of handling jumping is ok, but in a game with alot of platforms, it will slow things down alot. Macromedia's programmers decided to be lazy idiots when they programmed the hitTest code. It's advisible to avoid using hitTest at all costs. Check out my tutorials for a better method of handling all that kind of stuff.

http://asylumavatars.f2o.org/tutorials


Questioning

Elementsk8er506

Reply To Post Reply & Quote

Posted at: 12/12/02 04:25 PM

Elementsk8er506 NEUTRAL LEVEL 11

Sign-Up: 07/23/02

Posts: 105

for the jump code i can get my movie clip to jump by pressing space but........when it comes back down it goes through the ground. i know before that you had wrote something about how to make it stop once coming in contact with the wall but it was written kind of confusing. can you write the ground part more detailed and if it would be written in steps that would be awesome. please reply to this. it will be GREATLY appretiated.


None

ChocolateChipClock

Reply To Post Reply & Quote

Posted at: 12/12/02 08:02 PM

ChocolateChipClock NEUTRAL LEVEL 19

Sign-Up: 08/16/02

Posts: 4,139

well, since fargate hasnt answered, i'll tell u. just name the instance of the movieclip u want it to stop on "ground". if u dont know how to make instance names, just click on the mc, go to properties, then go to instance and type in ground. so, when it lands on the movieclip called "ground", it will stop. easy, huh.


Questioning

Winthawk

Reply To Post Reply & Quote

Posted at: 12/13/02 01:31 AM

Winthawk NEUTRAL LEVEL 22

Sign-Up: 09/06/00

Posts: 49

I'm having problems with the jump script too, for some reason. The hit detection on the platform works when I just use:

if(this.hitTest(_root.grnd))

But adding in the x, y, true part just makes them fall right through it. Any ideas? I've been copying and pasting it in as is, and as you can see I changed the instance label to grnd since the library name is ground.


All times are Eastern Standard Time (GMT -5) | Current Time: 11:55 AM

<< Back

This topic is 36 pages long. [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 92236 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!