HOME | DD

Computer-Turret β€” Monster RPG AS3 v1

Published: 2009-09-25 22:22:40 +0000 UTC; Views: 1493; Favourites: 4; Downloads: 21
Redirect to original
Description Made this in a few days, all done in AS3.
Wanted to see if I could do a pokemon clone and pretty much it's decently easy but time consuming. That and AS3's debugger SUCKS. LOL THERE IS SOME UNDEFINED VALUE SOMEONE IN THIS GIANT FUNCTION FIND IT BATCH
>_<
Other than that, AS3 isn't hard to switch to at all.

edit: Oh arrow keys to move, white glowly circles heal you. Different monsters appear in the grass area up top than the rocky brown area below.
Related content
Comments: 40

Amphibi4n [2009-10-10 21:07:31 +0000 UTC]

Sorry, MAtt, keep trying D:

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Amphibi4n [2009-10-10 21:54:27 +0000 UTC]

^.^ why is that? What don't you like?

πŸ‘: 0 ⏩: 0

Ninjapear [2009-10-05 04:34:41 +0000 UTC]

amazing you switched to as3 so fast! can you write some tuts now, and if you could make a fight game tut that would be great

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-05 11:00:24 +0000 UTC]

I've just been over my head busy with everything this weekend and have a pre-calculus test on tuesday. I do plan on writing tuts and finishing some things and all this great shit but school should come first.

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-05 17:44:34 +0000 UTC]

oh i dont go to school but...... tuts are more important.....i think, as3 is totaly diffrent? but i got a book on it and theres the tuts, i like your tuts can you show me how to make a rpg after school or whatev

πŸ‘: 0 ⏩: 2

Computer-Turret In reply to Ninjapear [2009-10-05 21:54:30 +0000 UTC]

How old are you? School is rather important as good marks=good scholarships+money=good university=good job.

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-05 22:05:56 +0000 UTC]

codings a good job stay true to it, im 12 as3 is hard what with all the .as files and .fla's and stuff but im getting the hang of it!, so why is this sooo much better than as2 is it better physics and stuff or do you not have to write quite so many lines to get code done? can you make games better can you write functions like

if(ball)hits(wall){
stop(); _root.ball/radius
}

once you get it down can you write stuff faster

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-05 22:09:34 +0000 UTC]

I know what you are going through, I hated AS3 for the longest time. Refused to switch, thought it was stupid and a waste of time, took longer to do the same things hardly noticeable difference as far as I could see in performance, etc etc. Came down to it that the company's only want those that know AS3, they couldn't care less about scripting languages AS1 and AS2. AS3 is OOP based and is a full programming language.

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-05 22:13:40 +0000 UTC]

wow so did you ever have trouble pasting the scripts and stuff, i know how to link classes and document classes and that stuff but sometimes this stuff just dosent work? you ever have that problem and could you tell me how you fixed it????

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-05 22:33:15 +0000 UTC]

Biggest problem I have is the debugger is so vague for AS3. "LOL THERE IS SOME UNDEFINED TERM OF SOMESORT SOMEWHERE IN THIS FUNCTION FIND IT BITCH" is what I tend to get out of it half the time because unlike AS2 it requires everything to have a set type (String, number, boolean, etc) and not ever change type as well as have a set default value and spazes if a movieclip/instance name referenced isn't there.
If it "just doesn't work" there is a reason for it, just takes time hunting down what the problem is and where it is. Commenting out sections of code tend to help.
I also prefer to not use .as file but rather do it all in the timeline like AS2.

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-06 00:25:49 +0000 UTC]

you saying that every script has a error and i got to it out?, oh and yea .as files arent so great but i havent done 1 tut online right, i dont know as3 so how can i debug!!!, can you upload some tuts like(basic arrow key movment for rpgs)(varing and stuff) evreything you find uselull
could you do that after school

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-06 00:59:01 +0000 UTC]

What? First learn to type with spelling and grammar so I can understand you. Would be preferable. You do know that simply googling "Flash AS3 movement" would result in lots of results, same goes for many things having to with basics.

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-06 01:15:05 +0000 UTC]

yes but that leaves a few to choose from which is nice, and how do you debug the code what am i looking for? can you show me how you would debug this movement code?, or if you could show me a movement code you have found that works

function movement(Event){
if (varRight == true) {
player.x += xspeed;
}
if (varUp == true) {
player.y -= yspeed;
}
if (varLeft == true) {
player.x -= xspeed;
}
if (varDown == true) {
player.y += yspeed;
}
}

s hows my grammar better?

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-06 11:12:18 +0000 UTC]

Much more readable, appreciate it.
Well when you export in Flash (control+enter) it will tell you of errors in a window (may be be floating or docked with others based on your settings).
For instance:
1084: Syntax error: expecting leftparen before leftbracket.
It also includes the line number of where the problem is and so on.
Likewise you can trace to figure things out yourself to have them appear in the output panel.
var a:Number=1;
var b:Number=2;
var c:Number=3;
if (a+b==c) {
trace("Correct! "+a+"+"+b+"="+c);
} else {
trace("ur math is wrong");
}

Now for movement you typically have to use the key listeners for AS3, bit of a pain but you'll soon realize that's all my key keys generator engines are.

stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownHandler);
var moveSpeed:Number=5
function onKeyDownHandler(event:KeyboardEvent):void {
var code:uint = event.keyCode;
var char:String = String.fromCharCode(code);
if (code==38) {//up
hero.y-=moveSpeed;
}
if (code==39) {//right
hero.x+=moveSpeed;
}
if (code==40) {//down
hero.y+=moveSpeed;
}
if (code==37) {//left
hero.x-=moveSpeed;
}
}

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-06 17:41:44 +0000 UTC]

i know the output and complier errors and everything that as also in as2, wow you wrote this?
how long you been doing as3, i just put this on the frame make a mc called hero? or is this like a test for me to rid errors from?,thanks by the way

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-06 19:09:52 +0000 UTC]

"hero" is the instance name of the MC on the stage.
Should work, didn't test myself though. It's the general key listener code is all.

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-06 21:16:54 +0000 UTC]

its working now i can tell you used this for your rpg lol yea this is good but it dont work

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-06 22:09:47 +0000 UTC]

It's working yet it's not working?

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-07 00:58:46 +0000 UTC]

no its working like you wanted it to but its not smooth?

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-07 01:59:27 +0000 UTC]

That is a problem with AS3, keylisteners have that first "hic-up" as some would call it before it smooths out. There are a lot of work-arounds but I've not tried them. Kind of annoying, only reason I put up with AS3 is because it can handle larger loops and it's supposed to be the standard for companies.

πŸ‘: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-07 02:27:11 +0000 UTC]

ok

πŸ‘: 0 ⏩: 0

Ninjapear In reply to Ninjapear [2009-10-05 21:03:07 +0000 UTC]

the tuts ive been doing dont work! where do you put the code cuz what i did is, make mc instnce name it somthin and paste the code on the frame is that all?
they didnt ask for a .as

πŸ‘: 0 ⏩: 0

Ninjapear [2009-10-05 04:33:47 +0000 UTC]

amazing you switched to as3 so fast! can you write some tuts now

πŸ‘: 0 ⏩: 0

ZhaneAugustine [2009-10-04 05:02:35 +0000 UTC]

It is pretty good, a classic eighties feel to it, at least a classic 80 computer game feel anyway.

Storyline I'd put in a few more monsters, not sure if these mutate or evolove or have alternated forms like dragon quest does. I'd also put in a rival or two who are intent on making a name for themselves as a hero of humanity instead of you.

It kind of sucks that it skips as it walks, and almost looks like he's pausing, but other than this, its cool. And addictive, I'd continue if I were you.

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to ZhaneAugustine [2009-10-04 14:12:07 +0000 UTC]

Thanks for the input, appreciate it.

πŸ‘: 0 ⏩: 1

ZhaneAugustine In reply to Computer-Turret [2009-10-04 14:23:07 +0000 UTC]

no prob

πŸ‘: 0 ⏩: 0

Moozipan-Cheese [2009-10-01 21:22:39 +0000 UTC]

I love it. Really basic, but despite being a blatant PokΓ©mon clone, I really hope you continue this project and turn it into a full-fledged game with top-notch graphics and sounds and whatever. It shows a lot of promise!

πŸ‘: 0 ⏩: 0

mrnzr [2009-09-27 10:08:01 +0000 UTC]

billy, can i ask for the code (fla) ? i want to learn about as3.

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to mrnzr [2009-09-27 13:36:14 +0000 UTC]

I would if I was sure I wouldn't continue the project but it seems I probably will.
If you have any specific questions though I can answer them as best I can/make a quick fla for you to show how.

πŸ‘: 0 ⏩: 0

SkylaComics [2009-09-27 03:50:31 +0000 UTC]

I wish holding down walk worked properly... It's weird having the pause the first time you hit the button.

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to SkylaComics [2009-09-27 13:29:59 +0000 UTC]

You can blame AS3 for that and key listeners. It's a known "bug" of AS3 that has plenty of stupidly annoying work arounds I didn't want to get into.

πŸ‘: 0 ⏩: 0

windtunnelarchives [2009-09-26 12:03:26 +0000 UTC]

I choose you pikachu!!!!

but seriously. great concept you have here. If you decide to continue i'd love to help with storyline.

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to windtunnelarchives [2009-09-26 12:34:57 +0000 UTC]

Thanks, seeing as I have no idea what to do for the story line at the moment.

πŸ‘: 0 ⏩: 1

windtunnelarchives In reply to Computer-Turret [2009-09-26 23:46:03 +0000 UTC]

well we could definetly do like a badass look at it, whereas it's the post apocolyptic world, and during the war man created monsters to fight against eachother, but the monsters turned on them and nearly turned them extinct. so it's up to you to defeat the evil monster empire, and return peace and humanity to the world.

I don't believe something like that's been done but i could be wrong who knows. guess we'll see if you really decide to do this or not.

πŸ‘: 0 ⏩: 2

Moozipan-Cheese In reply to windtunnelarchives [2009-10-01 21:20:19 +0000 UTC]

Well, it's much better than the generic "defeat the 8 gym leaders, then defeat the ELITE FOUR, and then capture all the PokΓ©mon" storyline of every single PokΓ©mon game.

πŸ‘: 0 ⏩: 0

Computer-Turret In reply to windtunnelarchives [2009-09-27 01:19:48 +0000 UTC]

That's actually pretty epic sounding. I'd go more with the monsters grew too strong and when released to the wild spread rapidly and mutated into others. Rather than have an empire of them. They grew stronger and could no longer be controlled thus a call for those willing to go out there, capture and train them or destroy them all. You discover the source of the rapid growth someone deep in a mountain or something, etc.

πŸ‘: 0 ⏩: 0

billythegoat101 [2009-09-25 23:14:42 +0000 UTC]

very buggy, but cool nonetheless

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to billythegoat101 [2009-09-25 23:19:31 +0000 UTC]

What bugs?
Worth continuing this project?

πŸ‘: 0 ⏩: 1

billythegoat101 In reply to Computer-Turret [2009-09-25 23:24:00 +0000 UTC]

it could be really cool with a few graphic changes and maybe some more levels
but it would tale a lot of work

i see only two major bugs, one is taht it randomly jumps back to the beginning at times and taht sometimes when i have that walking skull guy he comes out with negative health (which i dont know how he lost) and is not able to do any moves

its very nice so far though, id like to see how it comes out

πŸ‘: 0 ⏩: 1

Computer-Turret In reply to billythegoat101 [2009-09-26 12:29:51 +0000 UTC]

20 seconds graphics tend to do that
Hmm, I've not encountered these bugs. Well they don't get healed when you first catch them if that's what you mean. The first bug I think I know why that might happen though. thanks

πŸ‘: 0 ⏩: 0