MiniTut: Keyboard+Object


Date Submitted

08/12/2007 | 07:23PM EST

File Information

Game | 22.8 KB

Add Game to Favorites

Current Score

2.28 / 5.00

285 votes | 1,033 views

Click an icon to vote on this!

You are not logged in.

If you log in to vote, you could win $100!

Related Submissions

Submissions by Andrea (Andrea364):

Submissions by Haley87:

Submissions by Soul-Eating-Reaper07:

Everyone Suitable For All Audiences
MiniTut: Keyboard+Object
Play this Game!
Pop-Up | Add to Favorites

Author Comments

Okay, this is the first mini tuturial which I hope'll turn into a series, I dunno about the others' thoughts on it. (sorry, no preloader, we had no time to whip one up or download one since there were some bugs and there was a deadline we had preset, plus, this comp here is on a 400 processor which often causes it to crash when doing flashes)

Please review! :D

READ THIS:

There is no sound because we had too many complaints about how people didn't want to listen to music while reading. They said it was distracting. Anyway, it's a tuturial on how to move an object with your keyboard using Action Script.

Note- it was supposed to move in a circle kinda so It'd stay in your sight range while you tryed to move it. I disabled up and down because people would play with it and make it move in front of the text.

I tryed to make it as neat as possible. (I made the panel and experimental ship) The script is below, so you can copy and paste it into your little A.S. box. SORRY IF IT'S A LITTLE HARD TO READ!
- - - -

SCRIPT USED: (FIXED!)

onClipEvent (enterFrame) {
speed += 5;
}
if (Key.isDown(Key.UP)) {
speed += 5;
}
if (Key.isDown(Key.DOWN)) {
speed -= 5;
}
if (Math.abs(speed)>20) {
speed *= .7;
}
if (Key.isDown(Key.LEFT)) {
_rotation -= 15;
}
if (Key.isDown(Key.RIGHT)) {
_rotation += 15;
}
speed *= .60;
x = Math.sin(_rotation*(Math.
PI/180))*speed;
y = Math.cos(_rotation*(Math.
PI/180))*speed*-1;
if (!_root.land.hitTest(_x+x , _y+y, true)) {
_x += x;
_y += y;
} else {
speed *= -.8;
}
}

- - - -

Credits:

Andrea364: Art and layout design
Soul-Eating-Reaper07: Scripting the ship and script (in the right side of the panel)
Haley87: Steps and descriptions

Hope you enjoy!

6 reviews | Log in to write a review | Share this!

The people have spoken

Average Score: 6.0 / 10

Score: 10
AngelInTheNight

"Good, but needs music"

date: September 23, 2007

You guys used some excess actionscript, but I'm fine with it, good job anyway, seing as it passed. :)

Rate this review:
Helpful!
Useless.
Flag as abusive.
No users have weighed in on this review.

Score: 10
DrakstonOfDoom

"nice tut"

date: September 23, 2007

Now I've learned some great actionscripting thanks to you. Maybe we can work together sometime on a flash or something.

Rate this review:
Helpful!
Useless.
Flag as abusive.
No users have weighed in on this review.

Score: 6
JoAlice

"Sis, why so short?"

date: August 29, 2007

It was helpful and all, but seriously, why one screen? When I get flash I'll come back to this.

Rate this review:
Helpful!
Useless.
Flag as abusive.
No users have weighed in on this review.

Score: 4
Dew

"One screen?"

by: Dew
date: August 12, 2007

Haveant you ever seen the tutorials here on Ng. And how they are animated? Those ones have at least somthing good, but this dosent. Sure its helpful, but all tutorials are. You have to make it so its captivating enough to send noobs watching your tutorial. Not to mention more then one screen and copyable text on the flash. Anyway poor tutorial, and way to boring.

August 12, 2007

Author's Response:

Well you know what, maybe this is just a tuturial series, not a full length tuturial. Next time, read the author comments before you review! And if it's so poor how did it pass then?

Rate this review:
Helpful!
Useless.
Flag as abusive.
People think this is a useless review.

Score: 3
smokinjoeevil

"Just... not good."

date: August 12, 2007

A single screen? Way too messy. It would have even looked slightly more professional had you picked better and more consistent font colors and placement.

I wouldn't even call it a tutorial if you don't explain what it is you are doing. Explain the code, explain the possible usage. With a tutorial, people want to learn, not be hand-fed bits of knowledge that they may or may not be able to apply. I strongly sugest that you learn to use Flash yourself before you go trying to teach it to other people.

Lastly, I'm just going to state my wonder at the fact that you boast 3 people having worked on this. That is all. Thanks.

August 12, 2007

Author's Response:

Well, it was a bit rushed, plus, we did say it was a mini tuturial you know.

Well, if you paid attention, you'd see that there's a variety of uses, including tuturials themselves. See, I have to go through a lot of things to get a collaborated tuturial done in one day, like getting the info needed, art, coding, color choices, possible mistakes, it is a long list to tell the truth.

In fact, 3 people did work on this, and that's how we got it done in less than a day! Well, since you weren't overly rude, thanks for reviewing so in the future our movies can be improved!

Rate this review:
Helpful!
Useless.
Flag as abusive.
People find this review helpful!