Author & File Information

Staticblaze

Designer

Staticblaze

Contact


Submitted: 06/03/2007 | 09:53PM EST

File Info: Game | 1.5 MB | Add Game to Favorites

Genre: Tutorial

Current Score: 4.12 / 5.00

505 votes | 7,150 views

Click an icon to vote on this!

You are not logged in.


Related Submissions

Submissions by Staticblaze:

Users who liked this also enjoyed:


Author Comments

NOTICE: If you're using Flash 9 or better(newer), switch to ActionScript 2!

All action script is presented in a fashion that will allow people to follow along with and learn from in the form of a small game additive. You cannot make a game from just the information presented in this tutorial, but rather learn something about how each of these aspects work. This is not a sequel to any of my other Tutorials. Also, this tutorial is for people who actually know what they are doing in Flash; it's not for beginners. I will repeat. BEGINNERS STAY AWAY. Thank you for viewing and hopefully benefiting from this tutorial.

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

The people have spoken

Average Score: 9.1 / 10

Score: 9
malzey2k8

"hey man"

date: September 2, 2009

hey man the tuts great only the potion keeps dissapearing when i go to test it any tips
i place the actionscript where you said and it keeps happening

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

Score: 10
SAINTsoldi777

"PLEASE ANSWER!!!!!"

date: February 20, 2009

OMG DUDE U WONT BELIEVE ME BUT I JUST CREATED AN ACCOUNT ONLY FOR ASK U: WHAT SONG IS THAT!!!!!!!!???? ITS AWESOME, btw i want to make a RPG game too, but im making right now 2 games at same time so... ill make rpg someday bye answer pl0x

February 22, 2009

Author's Response:

Snow Drifting'

by: Realmguys

Rate this review:
Helpful!
Useless.
Flag as abusive.
People aren't in agreement over whether this is helpful or not.

Score: 7
pet-stone

"um.... error..."

date: January 7, 2009

the wall collision script doesn't work, the player just walks thro...

...help!

February 22, 2009

Author's Response:

There was a lot of text there explaining why that works. I hope you read it...

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

Score: 10
catmana

"Great tutorial"

date: December 21, 2008

On mistake in the code though.

(_root.potionholder)) {_root.potionholder.gotoAndStop(2);_r oot.hp + 10;}}}

should be:
(_root.potionholder)) {_root.potionholder.gotoAndStop(2);_r oot.hp += 10;}}}

you forgot the = sign.

January 3, 2009

Author's Response:

Holy shizzle cake nuts you might be right. Checking....

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

Score: 9
Kwing

"Pretty Good"

by: Kwing
date: October 8, 2008

Sorry about my jackass comment on the beginner's tutorial... I was a noob then. However, it looks like today the student will be teaching the master. Before even testing your script, I noticed an error!

onClipEvent(enterFrame){//Okay, no flaws here.

if(_root.hp<99){//Shouldn't it be 100? But that's personal preference.

if(this.hitTest(_root.potionholder)){
//Impossible! if( conditions can't be inside of other if( conditions, unless you're using a different version of AS. The real script should be in one if( condition that contains &&.

_root.potionholder.gotoAndStop(2);//T his would be much easier if it were a simple unloadMovie();

_root.hp+=10;//Isn't that a little stingy? Once again, personal preference

//BUT YOU FORGOT TO TERMINATE THE FUNCTIONS WITH A }}!!!

Also, here's a better wall script (it's not mine, but it works much better)
onClipEvent(load){
radius = _width/2 - 1;
}
onClipEvent(enterFrame){
while(_root.walls.hitTest(_x, _y+radius, true)){
_y--;
}
while(_root.walls.hitTest(_x, _y-radius, true)){
_y++;
}
while(_root.walls.hitTest(_x-radius, _y, true)){
_x++;
}
while(_root.walls.hitTest(_x+radius, _y, true)){
_x--;
}
}
Although the script doesn't seem too bad. I should be able to comprehend it if I really try.

Also, you never put in script for the player to stop moving its feet, or diagonal walking, which (I think) would just be if(! conditions, the ! meaning if it is NOT, or perhaps }else{ actions... I never went into that kind of stuff.

However, I did like how you said how you could keep the HP from going over 100, but I personally would have put:

onClipEvent(enterFrame){
if(_root.hp>100){
_root.hp=100;
}
}

I liked the numeric stepper though, although I could only partially understand it.

Penultimately, there's a glitch where the bounce stops working and you can get infinitely low health this way.

And finally, you did a good job, but show how to make a shop, because although I have some ideas on how you would buy stuff, and only stuff you could afford, I only have about 1/3 of an idea how to make the items you bought count. And even if I know, other people don't.
The only thing you have ensured is that I will know how to make it so that you have to pay to advance a level or area.

November 3, 2008

Author's Response:

Thanks for whatever the heck you tried to tell me, I appreciate any help. But seriously, I'm confused why some of this wouldn't work for you when it worked for everyone else?

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