[go: up one dir, main page]

00:00
00:00
Newgrounds Background Image Theme
Upgrade Your Account!

HO HO HOPE you become a Newgrounds Supporter this year!

We're working hard to give you the best site possible, but we have bills to pay and community support is vital to keep things going and growing. Thank you for considering!

Become a Supporter so NG can see another Christmas!

Response to: XML Socket Posted January 30th, 2006 in Game Development

Response to: My Api! Posted January 30th, 2006 in Game Development

I found a bug: If you input the counting backwards (from 10 to 0), it never stops, you should fix that(with an if or something). And why you should use that api for??

Response to: Key taps Posted January 23rd, 2006 in Game Development

At 1/22/06 05:30 AM, ShotInTheHead wrote:
At 1/22/06 01:27 AM, KoNeJo wrote: This is no newbie code
theres no way you made all of that, because if you did...

1. this topic woulnt exist. you wouldve figured this out
2. you wouldve posted only parts that require a double tap or something like that.

The code cannot be understanded if its not complete, posting just a part for NEWBIES would be useless. Yes, i made it, and in fact its a way to simple. See the swf example I post it.

These are the "combos":
X + X + X
X + X + X & down
X +X + Z
X + X + SHIFT

Response to: Key taps Posted January 22nd, 2006 in Game Development

This is no newbie code, and the result of the following code is this:
http://enkaja.net/v2..tas/xzonik_alpha.swf

Please wait fot it to load, since it has no preloader 'cause it an alpha version

I repeat, the AS its REALLY complicated, but i used this:

// IN THE MOVIECLIP THAT HOLDS ALL THE MOVIECLIPPED ACTIONS
// IN MY CASE THE SONIC MOVIECLIP
onClipEvent (load) {
this.stop();
_global.sys.pc = this;
}
onClipEvent (enterFrame) {
p = {x:0, y:0};
this.localToGlobal(p);
if (!_global.sys.paused) {
if (Key.isDown(Key.SHIFT)) {
//Roll
if (Key.isDown(Key.LEFT)) {
_global.sys.dir = 1;
this._x -= _global.sys.vel*3;
}
else if (Key.isDown(Key.RIGHT)) {
_global.sys.dir = 2;
this._x += _global.sys.vel*3;
}
else if (Key.isDown(Key.UP)) {
this._y -= _global.sys.vel*3;
}
else if (Key.isDown(Key.DOWN)) {
this._y += _global.sys.vel*3;
}
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(11);
}
else {
this.gotoAndStop(12);
}
}
else if (Key.isDown(Key.UP)) {
if (!_parent.bak.walls.hitTest(p.x+12, p.y+12, true)) {
this.gotoAndStop(_global.sys.dir+2);
if (_parent.bak._y<-5 && this._y<140) {
_parent.bak._y += _global.sys.vel;
}
else {
if (Key.isDown(Key.LEFT)) {
_global.sys.dir = 1;
this._y -= _global.sys.vel;
this._x -= _global.sys.vel;
}
else if (Key.isDown(Key.RIGHT)) {
_global.sys.dir = 2;
this._y -= _global.sys.vel;
this._x += _global.sys.vel;
}
else {
this._y -= _global.sys.vel;
}
}
}
}
else if (Key.isDown(Key.DOWN)) {
if (!_parent.bak.walls.hitTest(p.x+12, p.y+25, true)) {
this.gotoAndStop(_global.sys.dir+2);
if (_parent.bak._y+_parent.bak._height-315>0 && this._y<150) {
_parent.bak._y -= _global.sys.vel;
}
else {
if (Key.isDown(Key.LEFT)) {
_global.sys.dir = 1;
this._y += _global.sys.vel;
this._x -= _global.sys.vel;
}
else if (Key.isDown(Key.RIGHT)) {
_global.sys.dir = 2;
this._y += _global.sys.vel;
this._x += _global.sys.vel;
}
else {
this._y += _global.sys.vel;
}
}
}
}
else if (Key.isDown(90) || Key.isDown(90) && Key.isDown(Key.LEFT) || Key.isDown(90) && Key.isDown(Key.RIGHT)) {
//Z - Jump
_global.sys.paused = true;
jumping = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(5);
}
else {
this.gotoAndStop(6);
}
}
else if (Key.isDown(Key.RIGHT)) {
if (!_parent.bak.walls.hitTest(p.x+25, p.y+15, true)) {
this.gotoAndStop(4);
if (_parent.bak._x+_parent.bak._width-415>0 && this._x>215) {
_parent.bak._x -= _global.sys.vel;
}
else {
this._x += _global.sys.vel;
}
_global.sys.dir = 2;
}
}
else if (Key.isDown(Key.LEFT)) {
if (!_parent.bak.walls.hitTest(p.x, p.y+15, true)) {
this.gotoAndStop(3);
if (_parent.bak._x<-10 && this._x<165) {
_parent.bak._x += _global.sys.vel;
}
else {
this._x -= _global.sys.vel;
}
_global.sys.dir = 1;
}
}
else if (Key.isDown(88)) {
//X - Combo System
_global.sys.paused = true;
atacking = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(7);
}
else {
this.gotoAndStop(8);
}
}
else {
this.gotoAndStop(_global.sys.dir);
}
}
else {
if (!atacking && _global.sys.combo == "one" && Key.isDown(88)) {
//Atack
atacking = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(9);
}
else {
this.gotoAndStop(10);
}
}
else if (!atacking && _global.sys.combo == "two" && Key.isDown(Key.SHIFT)) {
if (Key.isDown(Key.LEFT)) {
_global.sys.dir = 1;
}
else if (Key.isDown(Key.RIGHT)) {
_global.sys.dir = 2;
}
_global.sys.combo = "none";
atacking = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(19);
}
else {
this.gotoAndStop(20);
}
}
else if (!atacking && _global.sys.combo == "two" && Key.isDown(88) && Key.isDown(Key.DOWN)) {
_global.sys.combo = "none";
atacking = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(13);
}
else {
this.gotoAndStop(14);
}
}
else if (!atacking && _global.sys.combo == "two" && Key.isDown(88) && Key.isDown(Key.UP)) {
_global.sys.combo = "none";
atacking = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(17);
}
else {
this.gotoAndStop(18);
}
}
else if (!atacking && _global.sys.combo == "two" && Key.isDown(88)) {
_global.sys.combo = "none";
atacking = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(15);
}
else {
this.gotoAndStop(16);
}
}
else if (!atacking && _global.sys.combo == "two" && Key.isDown(90)) {
_global.sys.combo = "none";
atacking = true;
if (_global.sys.dir == 1 || _global.sys.dir == 3) {
this.gotoAndStop(21);
}
else {
this.gotoAndStop(22);
}
_global.sys.paused = true;
jumping = true;
}
else if (atacking && !Key.isDown(88)) {
atacking = false;
}
}
if (this.jumping) {
if (Key.isDown(Key.LEFT)) {
this._x -= _global.sys.vel*2;
}
else if (Key.isDown(Key.RIGHT)) {
this._x += _global.sys.vel*2;
}
if (inicio == undefined) {
v = 0;
desc = false;
inicio = this._y;
this._y -= _global.sys.g-v;
final = inicio-80;
}
else if (this._y>final && !desc) {
//trace(target._y+" _ "+final);
v -= 2;
this._y -= _global.sys.g-v;
}
else {
v += 2;
desc = true;
this._y += _global.sys.g+v;
}
if (this._y>=inicio && desc) {
desc = false;
this._state.play();
inicio = undefined;
jumping = false;
}
}
}

------------------------

// IN A ROOT FRAME, ANYONE
//
_global.sys = {g:4, vel:4, dir:1, pc:undefined, paused:false, combo:"none"};
_global.pc = {hp_c:100, hp_t:100, cond_c:100, cond_t:100};

Response to: My Flash Site Posted January 22nd, 2006 in Game Development

wow, it seems that most of the people think that flash its only for making cartoon animations... no kids, the flash pros make flash-based websites, and, as far as i know, 2advanced its in the top 10 woldwide. They are so damn awesome at making websites that even Nintendo hires them, n'uff said.

Anyway, as a tip, never use 24fps in a flash-based web page, use 40fps and up, 60fps its recommended but its not a standart.

Here's my site, of course its not as good as a pro one, but i think it get the job done :D

http://enkaja.net/v2.5

Response to: Is it worth getting a homepage? Posted January 20th, 2006 in Game Development

About the problem with updating a flash-based site, here are some solutions:

Use an XML file for the text-based content OR create a database so you can modify it via ASP/PHP/etc... OR use a text file and load it into the flash via the loadVars class.

My site uses XML for the news, the tagboard uses a mySQL database and all the menus and sections are diferent flash files, so if I have to update one menu/section, I just need to change one file, without having the users to re-download the whole site.
There are more solutions, but these are the easy ones :D

My site: http://enkaja.net/v2.5

Response to: On at the right place Posted January 15th, 2006 in Game Development

i have the code, but its around 500 lines long, but the result is this:

http://enkaja.net/v2..betas/yalozpluz.html

i can give you the basic part of it (since its for a project im making), just ask nicely :D

Response to: flash earthbound-like game Posted January 15th, 2006 in Game Development

you mean something like this:

http://enkaja.net/v2..betas/yalozpluz.html

Response to: looking for flash talented people!! Posted October 21st, 2005 in Game Development

www.make-webart.com // click on the flash file then press control+5

Response to: your opinion Posted June 3rd, 2005 in Game Development

but, what would you like to add?
say, more techniques or an item that does X?
what would make it better?

your opinion Posted June 3rd, 2005 in Game Development

Im planing on making a game, but since I read some reviews of people saying that the engine is too complicated I decided to "ask the market"
So, can you post some of the thing you liked or disliked about THE ENGINE, NOT the graphics, dialog, etc. Just the engine, the way you interact with the game, the way you play it.

Here's the link:
http://newgrounds.com/portal/view/238023 <the game is in EXTRAS>unLOCKMODE

Response to: Programers, please help me (RPG) Posted May 30th, 2005 in Game Development

I would like to help.
This is a basic RPG I made, when I knew almost nothing about AS:

http://newgrounds.com/portal/view/238023

When the movie is loaded, goto extras, then unlock mode to play the game.

Response to: yet another... betatesters wanted! Posted May 20th, 2005 in Game Development

The version of the above link is COMPLEATLY unlocked, that is, FULL of SPOILERS. An spoiler-free version is in here (now is updated) :

http://newgrounds.com/portal/view/238023

So, anyone want to help?


Because many, if not all, complained about the terrible translation of the flash to the English(since I don't know a lot of English), I decided to relauch it, now with a decent translation, and in addition, simplify the controls of the game, that by the way, nobody could play :(
If you would like to help with the "correction" of the script, just post the fixed version (I'll now where to put it) and the way you want to appear in the credits (username, email, etc).
Thanks in advance.

Here's the file:

http://enkaja.freelinuxhost.com/modules.php?name=content&id=10

If the link doesn't work, I can send you the file by email

Response to: key code Posted April 22nd, 2005 in Game Development

At 4/22/05 05:27 PM, High_Roller wrote:
At 4/22/05 05:24 PM, Game_Max wrote: but what's the code forif key is up?
There isn't a particular if(Key.isReleased...etc. actionscript code that I've heard of. But look at this:
onClipEvent(enterFrame){
if(Key.isDown(Key.SPACE)){
//your action, if spacebar is down
}else{
//if key isnt down
}
}

It's pretty much self explanatory. When spacebar is being held down, do an action, unless it isn't, in which do this action.

If that didn't clear things up, post again.

onClipEvent(Key.isUp){
// CODE
}

Above check ANY key
And to check an especific key:

onClipEvent (enterFrame){
if (!Key.isDown( //Key )){
//CODE
}
}

Response to: Is there a command in AS to go back Posted April 22nd, 2005 in Game Development

At 4/22/05 04:39 PM, severed_fingers wrote: on(release)
gotoAndStop(_currentFrame-1);
}

The code above makes the movie go to the previus frame and it stops when it get there.

All the codes must be in a button, select_the_button > open > as_window

on(release){
gotoAndStop(x,y);
}
x represents the frame you want, and this function stops the movie in that frame
y is the name of the scene, and it can be omited.
4 example, if the scene name is s1, and the frame you wnat is the second, then the code will be:

on(release){
gotoAndStop(2, "s1");
}

or just "go to the frame 5 and keep playing":

on(release){
gotoAndPlay(5);
}

Response to: betaTesters wanted! Posted April 22nd, 2005 in Game Development

At 4/21/05 10:24 PM, Bezman wrote:
At 4/21/05 06:40 PM, KoNeJo wrote: Ok... I just wanna ask a simple question...
Why, oh, why nobody played the game?
It's in the extras section...
Can someone play it, please?
Really nice.

But...

'Accired' should be 'Acquired'

Wow, someone found "the bug"!!
Yes, I knew that the "Z & A" thing created an opening in the code, but it only works with the characters than have "more than one blocks of text". The "error" is caused by some validation-variables than become false at the same time.
From the beging, I wanted to change that "Z & A" thing, but since I was some sorta lazy, I forgot to.
Anyway, thanks for the help, and yes, I'll change that "Z & A" to "Z & Z"

Anyone else willing to help?


I'm fairly sure 'rupies' is spelt 'rupees'.

At one point an enemy got stuck in the trees.

When you're in a conversation, pressing Z simply starts it over and A doesn't do anything until the whole text is revealed. It's possible to press 'Z' and then walk away at the same time if you do it right. This can get very ugly. For example, I managed to get away from DK this way, but got into a fight and his text box was still on-screen during the fight!

From a design perspective, I think the text takes too long to appear.
Response to: betaTesters wanted! Posted April 21st, 2005 in Game Development

Ok... I just wanna ask a simple question...
Why, oh, why nobody played the game?
It's in the extras section...
Can someone play it, please?

Response to: betaTesters wanted! Posted April 20th, 2005 in Game Development

is that it? No more bugs or grammar mistakes?
And, has somebody already played the game?
It's in EXTRA>unLOCK mode

Response to: betaTesters wanted! Posted April 19th, 2005 in Game Development

Wow, i knew my english sucked, but not that bad...
Thanx 4 the info, I'll fix the dialog asap

Response to: betaTesters wanted! Posted April 19th, 2005 in Game Development

Thanks for the support!

Response to: betaTesters wanted! Posted April 19th, 2005 in Game Development

Thanks, I'll fix it.
By the way, in the menu, goto EXTRA>unLOCK MODE and test it, since it's there where the REAL bugs might be...

Response to: betaTesters wanted! Posted April 19th, 2005 in Game Development

Sorry I didn't post it yesterday, but the fv(|<ing host didn't refresh the DNS, so the file "didn't" exist.
Anyway, here's the link:

http://enkaja.freelinuxhost.com/modules.php?name=content&id=10

Mail me or post any questions, BUT mai me the bugs, misspells, etc, etc you find
Thanks in advance.

My e-mail:
the_kimera [at] hotmail [dot] com

betaTesters wanted! Posted April 18th, 2005 in Game Development

I'm looking for some betatesters for a movie/game I making.
All you've to do is find bugs, errors, spellcheking and check the dificult level of the game.
Of course I'll give credit for doing these tasks.
Since I only have about 5 months of experience in flash, DO NOT expect too much!!
Sorry if my english it's bad.

I'll post the address later, but first I want to know if there's anyone willing to do that.

beta testing Posted February 18th, 2005 in Game Development

Ok, this is the first flash I've made in english (spanish's my mother languaje) so i need help with the translation.
All I ask is to test the fmovie script.
The fmovie is 'bout %50 done so it has really bad quality.
E-mail me or post any errors, bug, misspelling, etc.
Thanx in advance.

<< Flash Location >>

http://enkaja.freelinuxhost.com/swf/yaloz.swf

Note: The server might be down sometimes.