HOME | DD

Published: 2008-02-24 03:53:01 +0000 UTC; Views: 35811; Favourites: 241; Downloads: 1954
Redirect to original
Description
Me and my bud FeindishDemon designed a neat little platform game tutorial.Related content
Comments: 290
AlopomJingle In reply to ??? [2009-08-30 09:18:00 +0000 UTC]
wow this is really amazing
very cute music
this is a really cute and creative idea, it really deserves more faves : D
👍: 0 ⏩: 0
thesense In reply to ??? [2009-08-17 23:59:54 +0000 UTC]
the vcam isn't working! please help!
👍: 0 ⏩: 1
hamza62240 In reply to thesense [2012-11-04 10:06:43 +0000 UTC]
get into the square movie clip, on the frame, add the code:
parentColor.setTransform(camColor.getTransform());
function camControl() {
parentColor.setTransform(camColor.getTransform());
var scaleX = sX/this._width;
var scaleY = sY/this._height;
_parent._x = cX-(this._x*scaleX);
_parent._y = cY-(this._y*scaleY);
_parent._xscale = 100*scaleX;
_parent._yscale = 100*scaleY;
}
function resetStage() {
var resetTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(resetTrans);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
// make frame invisible
this._visible = false;
// Capture stage parameters
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = Stage.width/2;
var cY = Stage.height/2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
// create color instances for color
// transforms (if any).
var camColor = new Color(this);
var parentColor = new Color(_parent);
// Make the stage move so that the
// v-cam is centered on the
// viewport every frame
this.onEnterFrame = camControl;
// Make an explicit call to the camControl
// function to make sure it also runs on the
// first frame.
camControl();
// If the v-cam is ever removed (unloaded)
// the stage, return the stage to the default
// settings.
this.onUnload = resetStage;
And now click Scene 1 near the tabs page, now select the actual vcam movie clip and paste this code:
onClipEvent (enterFrame) {
_y += (_root.player._y-_y)/4;
_x += (_root.player._x-_x)/4;
}
👍: 0 ⏩: 2
hamza62240 In reply to FishStickMystic [2013-05-30 09:28:57 +0000 UTC]
Well, for you??!?!?!?
👍: 0 ⏩: 1
FishStickMystic In reply to hamza62240 [2013-05-30 10:49:09 +0000 UTC]
I meant to say in my other comment, "It still doesn't work for me,". But, I finally got it right! You can see so in my Platformer thingy in my Newest Deviations.
Thanks!
👍: 0 ⏩: 1
hamza62240 In reply to FishStickMystic [2013-05-30 15:01:08 +0000 UTC]
Did you get it right yourself?
👍: 0 ⏩: 1
FishStickMystic In reply to hamza62240 [2013-05-30 21:40:45 +0000 UTC]
Well, you kinda helped... alot. So, I thank you. :3
You're also very helpful to everyone else who have questions.
👍: 0 ⏩: 1
hamza62240 In reply to FishStickMystic [2013-06-15 16:15:14 +0000 UTC]
Thank you! P.S I'm 7 years old
👍: 0 ⏩: 0
FishStickMystic In reply to hamza62240 [2013-05-02 00:38:07 +0000 UTC]
It still doesn't work.
👍: 0 ⏩: 1
hamza62240 In reply to FishStickMystic [2013-05-15 09:10:59 +0000 UTC]
Simple way: double-click movie clip, click frame, open actions panel, paste long code there, find Scene 1 button near tabs page, click it, normal (not double) click the movie clip, open actions panel, paste the short code there. Make sure your player's instance name is "player".
Done. Pie.
👍: 0 ⏩: 0
cjschrissouth In reply to ??? [2009-08-10 20:49:55 +0000 UTC]
Thankyou SOOOOOOOOOOOOOOOOOOOOOOOO MUCH!
THIS IS SO GOOD!
This has helped me start making my game and i cant thank you enouygh!
👍: 0 ⏩: 0
juzda In reply to ??? [2009-07-31 13:05:08 +0000 UTC]
Really nice tutorial, music is very annoying, but I got used to it. Something went wrong with me, but I'll try fix it out.
👍: 0 ⏩: 0
Ninjapanda13 In reply to ??? [2009-07-30 03:56:29 +0000 UTC]
Thanks alot man, I'll be sure to link you the result of my game!
👍: 0 ⏩: 0
Itsuwari187 In reply to ??? [2009-07-23 00:20:21 +0000 UTC]
lols at "easter egg" hahaha great tutorial
👍: 0 ⏩: 0
grimo97 In reply to ??? [2009-07-10 19:41:38 +0000 UTC]
i didn't see what code to put in the ground movie clip. what do i put in?
👍: 0 ⏩: 2
hamza62240 In reply to grimo97 [2013-05-14 13:02:24 +0000 UTC]
No you dont need code for ground. Just make sure that player's instance name is "player", and ground's "ground". To change or add instance name, select the movie clip and in the properties panel near the drop-box saying movie clip you will find " 👍: 0 ⏩: 0
Ninjapanda13 In reply to grimo97 [2009-07-30 03:55:37 +0000 UTC]
none, just make it's instance name "ground"
👍: 0 ⏩: 0
thesense In reply to ??? [2009-07-04 18:57:56 +0000 UTC]
thanks for sharing but i've a problem to get it to work!
is there a .fla file for this tutorial available please?
👍: 0 ⏩: 0
hamza62240 In reply to Pokenerd [2013-06-15 16:35:07 +0000 UTC]
AS2. If you are using a newer version of Flash E.G CS3, CS4, CS5, CS6, don't worry, you still will be able to use this tut- When you create a new document, be sure to select "ActionScript2 Document" instead of "ActionScript3 Document" in the "New" dialog box.
👍: 0 ⏩: 0
jealousactress In reply to ??? [2009-06-20 17:46:16 +0000 UTC]
does anyone know were i can download this program for free?
👍: 0 ⏩: 1
Narusim1 In reply to jealousactress [2009-06-23 05:41:27 +0000 UTC]
I'll email it to you. Note me your email.
👍: 0 ⏩: 1
masterofmegaman In reply to ??? [2009-06-16 20:48:03 +0000 UTC]
My guy falls through the floor.
👍: 0 ⏩: 1
hamza62240 In reply to masterofmegaman [2013-05-14 13:03:25 +0000 UTC]
Just make sure that player's instance name is "player", and ground's "ground". To change or add instance name, select the movie clip and in the properties panel near the drop-box saying movie clip you will find " 👍: 0 ⏩: 0
masterofmegaman In reply to ??? [2009-06-16 20:47:58 +0000 UTC]
My guy falls through the floor.
👍: 0 ⏩: 0
Heiros In reply to ??? [2009-06-03 05:26:37 +0000 UTC]
Nice, it looks like a great tutorial and would've been helpful me if I wasn't working with actionscript 3.
I luaghed when I found your glitch. XD Then I found anorher glitch where I suddenly dropped at a random spot where there was ground into nothingness. Hahaha XD
Great work non-the-less and I applaud you for your creative way on making a tutorial fun. It sure released some stress I was dealing with coding for my Flash Final Project. ^_^
👍: 0 ⏩: 0
GORE-Wolf In reply to ??? [2009-06-01 04:56:32 +0000 UTC]
Everything works fine, except ther character does not stand on the ground properly, and when I move over the coins, it just stays there. Please help. xO
👍: 0 ⏩: 0
Frankengoober10 In reply to ??? [2009-05-27 22:07:01 +0000 UTC]
Gaaarrrrbbleeee, I can't get the vcam to work. -.-
It just stays on the middle of the stage, and doesn't follow my character around.
Any suggestions on what I should do?
👍: 0 ⏩: 1
hamza62240 In reply to Frankengoober10 [2013-05-14 13:09:13 +0000 UTC]
Yes, add the large code:
parentColor.setTransform(camColor.getTransform());
function camControl() {
parentColor.setTransform(camColor.getTransform());
var scaleX = sX/this._width;
var scaleY = sY/this._height;
_parent._x = cX-(this._x*scaleX);
_parent._y = cY-(this._y*scaleY);
_parent._xscale = 100*scaleX;
_parent._yscale = 100*scaleY;
}
function resetStage() {
var resetTrans = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(resetTrans);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
// make frame invisible
this._visible = false;
// Capture stage parameters
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = Stage.width/2;
var cY = Stage.height/2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
// create color instances for color
// transforms (if any).
var camColor = new Color(this);
var parentColor = new Color(_parent);
// Make the stage move so that the
// v-cam is centered on the
// viewport every frame
this.onEnterFrame = camControl;
// Make an explicit call to the camControl
// function to make sure it also runs on the
// first frame.
camControl();
// If the v-cam is ever removed (unloaded)
// the stage, return the stage to the default
// settings.
this.onUnload = resetStage;
INSIDE the movie clip (double-click the vcam to go into it) frame. Just click the frame you have the vcam on and open actions box, add the code i added above.
Then, near the tabs you will find "Scene 1". Click on it and you will be back out of the movie clip. Now select (Yes, SELECT, not go inside) and open actions box again (To the movie clip, not frame) and add the code:
onClipEvent (enterFrame) {
_y += (_root.player._y-_y)/4;
_x += (_root.player._x-_x)/4;
}
Then test the movie and there! The camera will start to follow!
*TIP* If you want a background, just make one inside the movie clip (make it on the square) then delete the square after you made it. Then go back to Scene 1. Test it. There you go.
👍: 0 ⏩: 0
NinjaBobX In reply to ??? [2009-05-24 18:22:48 +0000 UTC]
great tutorial! i was just wondering though, since im an actionscript noob, i was looking through your code, and i saw that the keycodes for keys o and i were in there with the w a and d keys. i noticed that o and i make him stand in the air if pressed, instead of being in jumping state, so im wondering if they were just put in for debugging purposes, so yeah. just out of curiosity. sorry for the long message.
👍: 0 ⏩: 0
ShayminX In reply to ??? [2009-05-23 06:28:08 +0000 UTC]
I found your glitch,and you can stand on top of the text when you see the easter egg?
👍: 0 ⏩: 0
ShayminX In reply to ??? [2009-05-23 06:22:11 +0000 UTC]
I found two glitches,or easter eggs.I'm not telling anyone...
👍: 0 ⏩: 2
hamza62240 In reply to ShayminX [2013-06-15 16:37:09 +0000 UTC]
Plz tell the second? =o Maybe send me a note on dA?
👍: 0 ⏩: 0
hamza62240 In reply to ShayminX [2012-11-04 10:12:09 +0000 UTC]
HAHAHA, At the begenning, at the left wall, use the rocket glitch, get to the part where it shows to put the player's instance name, now run faaaaaaaaaaast to the left and when you reach the first left wall quickly press the up button, hold it, you will fly like a rocket and you go through the wall and EASTER EGG! i don't know the second btw
👍: 0 ⏩: 0
Orangerad2 [2009-05-11 22:01:03 +0000 UTC]
Another thing : When you make your player set the registration to the bottom or else the character won't walk on the ground correctly
👍: 0 ⏩: 0
JTtheLlama In reply to Orangerad2 [2009-07-22 20:45:09 +0000 UTC]
Its called {Runaway} by DaGrahamCraka.
Download from the Newgrounds Audio portal:
[link]
👍: 0 ⏩: 1
JTtheLlama In reply to JTtheLlama [2009-07-22 20:50:16 +0000 UTC]
Whoops, broken link...
Here: [link]
👍: 0 ⏩: 0
popppeee In reply to ??? [2009-05-02 19:02:06 +0000 UTC]
amazing platformer tutorial, the only one that is actually simple to understand. thankyou so much.
👍: 0 ⏩: 0
Shi-Gu In reply to ??? [2009-04-28 05:44:28 +0000 UTC]
Oh my, I've been looking through tutorials to do a platform game all week and this is one of the best ones! also, the only one with the wather script
👍: 0 ⏩: 1
hamza62240 In reply to Shi-Gu [2012-11-04 10:15:49 +0000 UTC]
Check emuelene feronato's. this tutorial destroyed my goal on newgrounds! >:L
👍: 0 ⏩: 0
Darigaaz-the-Igniter In reply to ??? [2009-04-14 07:29:57 +0000 UTC]
I like falling into oblivion
👍: 0 ⏩: 0
<= Prev | | Next =>