Be a Supporter!

MiniTut: Keyboard+Object

Score:
rated 2.30 / 5 stars
Views:
5,596 Views
Share Links:
Genre:
More Games
Tags:
None

Click on an icon to vote on this!

Credits & Info

Uploaded
Aug 12, 2007 | 7:23 PM EDT

If you liked this, check these out!


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!

Reviews


AngelInTheNightAngelInTheNight

Rated 5 / 5 stars

Good, but needs music

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


ADR3-N responds:

thx


DrakstonOfDoomDrakstonOfDoom

Rated 5 / 5 stars

nice tut

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


ADR3-N responds:

ok, cool


JoAliceJoAlice

Rated 3 / 5 stars

Sis, why so short?

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


ADR3-N responds:

Eh, idk. Lazy I guess


DewDew

Rated 2 / 5 stars

One screen?

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.



smokinjoeevilsmokinjoeevil

Rated 1.5 / 5 stars

Just... not good.

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.


People find this review helpful!
ADR3-N responds:

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!