00:00
00:00
Newgrounds Background Image Theme

King-Kiddoh just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Reviews for "OOP Platformer Tutorial"

Ahhh.... useful

I remeber when I first tried making platform games, I had to find a little bit of everything from different sources, I couldn't copy-paste anything, and most tutorials said in order to give a facing left or right to use x_scale, which if a characters right was different from his left would be useless. In the end I had to learn basic code, and then I gave up... I was reading though your tutorials and I think I have new hope. Anyhow 10 out of 10. I also like the note-taking section... it was a good idea.

smokinjoeevil responds:

I never even actually thought about using the "_xscale" property to flip the clip around horizontally... but yeah, that seems kinds kludgy. Especially if your character has a word on his shirt or something! But you're absolutely right... the way I have set up the left/right turning lends itself very well to those being completely separate movie-clips. So that your character could, for instance, be wearing an eye-patch and it could show on the correct side regardless which way he was facing.

Glad you got something out of it! Especially since you seem to be one of the veterans of programming this type of game. Thanks for the review.

Great! but...

i'm stuck at the part when i'm done moving the stickman, i made 5 frames and stuff got it moving ( my art sux but it still moved :P ) but then i need t get a code working, so i go back to the empty movieclip and pres F9 and paste the whole code there, but it doesn;t work, please PM me or something, if you want i can send you the fla

great

its really helpfull. the only problem (4 me) was that i couldn't copy and paste things. probarbly jut me though.

smokinjoeevil responds:

Any of the code-boxes that you click to open during the tutorial should be copy and paste-able. You DO have to click and drag to highlight all of the text in those boxes... or I think pressing the [Control] + [A] key combination will also select-all in the text box. Then just use [Control]+[C] to copy, and paste into your text-editor of choice... or directly into Flash.

excellent tutorial

but one thing I really would like to know... is how do you code bad guys... how do you make them move toward the person you control? And how do you enable all this stuff to work and have the screen scroll at the same time??? hmm... but yea. nice tutorial. I'm definitely going to look at this again.

smokinjoeevil responds:

I'm actually going to be coming out with an AS3 re-hash of this tutorial plus the things you're asking about and more. The scrolling is actually a really easy one though. You simply make the background graphic into its own movie clip, give it an instance name, and tell it to move in the opposite direction the character clip moves. Then you just encase that movement in an if condition that controls when it stops moving as the character approaches the edge of the level on either side.

amazing tutorial

This is an amazing tutorial. It didn't really help me because that's way too hard for me.
But I loved reading it. The graphics are cool, it looks very neat and it's very informative too.
It's everything a tutorial needs to be.
great job !

smokinjoeevil responds:

Thanks! If you start with my other tutorial, you may find it easier to grasp some of the code and concepts presented in this one. Anyway... good luck in any of your Flash endeavors.