Adobe flash cs4 platform game basics : intro
Uploader Comments (oppcell)
Top Comments
-
I haven't been making tutorials for a little while I had a little vacation, I was over at my ladies house and I was in her bed and let me tell ya, you know when your in a bed with a lady you know what happens don't ya...
I was watching 3 seasons of lost and it was Fantastic!
After I heard that I just had to subscribe :P,
Nice tutorial and nice sence of humor!
-
so what is the code for the solid ground?? pls tell me!!! im confused
All Comments (65)
-
thank you so much, that will make me rich
-
You can get much interesting movement if you repleace these lines:
if(hero.x-20<mouseX){
hero.x+=5
}
if(hero.x+20<mouseX){
hero.x-=5
}
with this:
var distx:Number = hero.x - mouseX;
hero.x -= distx / 13;
-
Hey, the simplest jumping logic to follow and it worked for me the very first try! However, I don't understand two little parts in your script:
so when you set the jumped boolean to true, why do we need to raise the hero's y?
hero.y -= 5;
and is 5 just an arbitrary number or does it hold any significance?
My second question, during your ENTER_FRAME event handler, why do I need that loop that loops 10 times and when the hero hits the floor, why do I need to raise it again? hero.y --; Thanks!
-
Thank you for this, great starting point.
Now Im off to make some enemies, some levels and bonus stuff.
-
i literally put my mouse arrow thing on top of your mouse arrow thing and it was the same size lol..and good joke in the beginning lol.
-
It didn't work for me.
-
I was able to do it. Im trying to make game apps for Android. A few things, 1 If your character is behind then your registration point is not on the bottom. 2nd i can copy my AS3 code in an email if you want just pm me, 3rd, its, AS3(ActionScript3) so yes it works on CS5. Thats the version I have. Im working on the hit point for walls now, I havent tried it just yet, but copy your X hitpoint script for Y and see if that works. that might give you a "roof" Im a child when it comes to AS3... sorry
-
thank you but it doesnt work
-
how do you make walking character? or hero?
how do you open the actionscript where you paste the code???
rinaarmena 2 years ago
you can press F9 or window -> actions
oppcell 2 years ago