This may help you:
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!
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??
At 1/22/06 05:30 AM, ShotInTheHead wrote:At 1/22/06 01:27 AM, KoNeJo wrote: This is no newbie codetheres 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
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};
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
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
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
you mean something like this:
www.make-webart.com // click on the flash file then press control+5
but, what would you like to add?
say, more techniques or an item that does X?
what would make it better?
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
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.
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
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
}
}
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);
}
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...Really nice.
Why, oh, why nobody played the game?
It's in the extras section...
Can someone play it, please?
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.
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?
is that it? No more bugs or grammar mistakes?
And, has somebody already played the game?
It's in EXTRA>unLOCK mode
Wow, i knew my english sucked, but not that bad...
Thanx 4 the info, I'll fix the dialog asap
Thanks for the support!
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...
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
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.
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.