You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'FFKing'

We found 358 matches.


<< < > >>

Viewing 1-30 of 358 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 1012

1.

None

Topic: Not-so-random variable

Posted: 04/20/06 03:06 PM

Forum: Flash

Hello.
It worked by having a variable called "_root.players"
which initially equalled 0, and this told the code that there was one player. (when it was 1 there were 2 etc).
The monster attacking script involves it selecting a random number between (_root.players) (if it is 0, it goes and attacks player one, 1 it attacks player 2 etc).
BUT, my problem is this:
the dying code means that when a character dies, the variable decreases by 1. now, this means that players 1-3 can be attacked (because the variable will be 0, 1 or 2).
But if player 1 dies, it still decreases by one, meaning that players 1-3 can be damaged.
Is there a way around this?
I'm thinking of using arays, but I am not overly familiar with their usage.

Here is my attacking code for the momster:
Code:

damageto = random(((random((1)+1)*-1))+(_root.players
)+1);

sorry for the ugly code

if (damageto == 0) {
_root.battlego.HP -= damage;
if (_root.battlego.HP<=0) {
_root.battlego.HP = 0;
}
}
if (damageto == 1) {
_root.battlego.HP2 -= damage;
if (_root.battlego.HP2<=0) {
_root.battlego.HP2 = 0;
}
}
if (damageto == 2) {
_root.battlego.HP3 -= damage;
if (_root.battlego.HP3<=0) {
_root.battlego.HP3 = 0;
}
}


2.

None

Topic: Perfect Character Jumping

Posted: 04/20/06 02:57 PM

Forum: Flash

I would personally reccommend Rystic's Jumping engine just from good personal experiece with it.


3.

None

Topic: AS: Save and Load

Posted: 03/30/06 01:55 PM

Forum: Flash

Hi.
I'm using this save and load code, and all works well when i am playing the swf file.
but when i upload it and play it (embedded into a webpage) the save + load function doesnt seem to work.
Not sure if its a problem or whether its me being a dumbass.


4.

None

Topic: Sound problems

Posted: 03/25/06 04:06 PM

Forum: Flash

Well not so much problems.
I'm using the code:

_root.win1Sound.start(0, 0);
_root.win2Sound.start(0, 999);

Which worls fine, but what i want is the second sound to play 4 seconds after the first. Is there a way I can achieve this? (basically a time delay script)


5.

None

Topic: Divisible by a number

Posted: 03/12/06 03:05 PM

Forum: Flash

I was just wondering if flash had a way of telling if a variable (which we shall call level) is divible by a number (such as 3).
A Simple question. hope someone out there can help me.
Thanks.


6.

None

Topic: MIDI into flash?

Posted: 02/11/06 10:23 AM

Forum: Flash

At 2/1/06 02:18 PM, James_Prankard_Inc wrote: You can only do this in FlashLite, though device sounds...

Is this only for flash 8, of Flash MX 2004, because I'm using the latter.


7.

None

Topic: MIDI into flash?

Posted: 02/01/06 02:08 PM

Forum: Flash

I was just wondering if there is any way to import a midi into a flash movie, as i have some quite nice midis i'd like to put in. I know it wont let you by the traditional methods of import>file to library/stage, but i was wondering if anybody here knew of another way


8.

None

Topic: Colour invert function

Posted: 01/31/06 03:12 PM

Forum: Flash

At 1/31/06 03:03 PM, authorblues wrote: AS: Photo Negative by Glaiel_Gamer

Ah, thank you very much GG!


9.

Happy

Topic: Colour invert function

Posted: 01/31/06 03:02 PM

Forum: Flash

Hello, its me again.
I was just wondering if there was a function that could invert the colours on the screen (i'm asuming sticking a '_global' bit in front of it would invert the colours for everything, which is what i'm trying to do.
Thanks in advance to anybody who attempts to help me, all your help is muchly appreciated to me :)


10.

None

Topic: A movieclip RPG question

Posted: 01/28/06 03:57 PM

Forum: Flash

Hullo again.
My RPG that I am working on is going alright, but I have encountered a problem on my random encounter script.
The first porblem is within it. you see, my battle screen in a movieclip with the hero and enemy movieclips embedded inside itself. I have a button on the first (and only) frame of the battlescreen MC (the one that contains everything else), that makes the hero attack. but, at the end of the hero's attack, I want everything to go back to frame 1 of battlescreen MC. I hope I have explained that enough to be understood by someone else other than myself.
My second problem is calling the battlescreen MC I think you use attachMovie, but i have no idea as to how I would go about doing this 9I am not familiar with the attachMovie function at all).
Sorry if theres a lot of questions here, but I was wondering if anyone would be able to help me out here.
My many thanks to all those who can help me


11.

None

Topic: General Game Code Questions

Posted: 01/26/06 04:39 PM

Forum: Flash

Okay, all the functions work!
The only problem is they dont stop working...
I know this is because functions continuously loop, but is there a way to pause them until a next criteria is met?


12.

None

Topic: General Game Code Questions

Posted: 01/26/06 03:58 PM

Forum: Flash

At 1/26/06 02:36 PM, -SNAIL- wrote: Also,it is not inside the function ( and ) where you name your function.

Thank you for your help
I'm not sure i fully understand this statement, is this saying that I can write

function(){

Instead of

function(name){

?
Thank you most kindly once again for your support


13.

None

Topic: General Game Code Questions

Posted: 01/26/06 12:42 PM

Forum: Flash

Hi, I have another querie, yet again about functions.
Okay, i have a frame where I defie this function:
onEnterFrame = function (updatestats) {
if (_root.EXP>=0 && _root.EXP<1000) {
}
if (_root.EXP>=1000 && _root.EXP<2500) {
_root.EXPnext = 2500;
_root.HP*1.25;
_root.MP*1.1;
_root.MAXHP*1.25;
_root.MAXMP*1.1;
_root.level += 1;
_root.STR += 1;
_root.MAG += 1;
}
};
And then on a later frame, i have a button with the code:
on(release) {
_root.EXP +=800;
function(updatestats){
};
}
But it doesnt seem to work. The EXP variable increases perfectly fine, but none of the rest do. Oh and all the variables are right, I checked to see if i had missed caps or spelt them wrong.
Does it matter that I make the code on one frame and then call it from another?


14.

None

Topic: General Game Code Questions

Posted: 01/25/06 04:10 PM

Forum: Flash

At 1/25/06 04:08 PM, -Vengeance- wrote: have you got it on an enterFrame?

I currently havent got any functions, but if I was going to it would be an onEnterFrame (onLoads dont seem to work with me, but thats a differrent matter)


15.

None

Topic: General Game Code Questions

Posted: 01/25/06 04:04 PM

Forum: Flash

At 1/25/06 04:00 PM, Juice-Tin wrote: if(HP>=MaxHP){
Hp = MaxHP;
}

Ah, sorry about that, It is like that in the coding, just not here.


16.

None

Topic: General Game Code Questions

Posted: 01/25/06 03:58 PM

Forum: Flash

Hello, it's me. sorry if the title is so generic, I'm gonna use this one over and over rather than creating a new thread each time i have a querie.
ANYHOO lets get down to business.
I seem to be having problems with simple integer checking code. The currentcode is:
if(HP>=MaxHP){
Hp = MaxHP;
}
But I have a button that increases hp by 10, and even with the check (as seen above), it still increases beyond the limit.
So I ask of you - which piece of code allows a constant checking of a formula?
I was thinking it might be a function, but i'm not to good at making them work.
Any help would be appreciated, and my apologies if the post was a bit too long-winded.


17.

None

Topic: A quick question

Posted: 01/24/06 03:41 PM

Forum: Flash

At 1/24/06 03:39 PM, Rantzien wrote: onEnterFrame = function () {
steps -= (Key.isDown (37) || Key.isDown (38) || Key.isDown (39) || Key.isDown (40));
};

37 is the same as Key.LEFT
38 is the same as Key.UP
39 is the same as Key.RIGHT
40 is the same as Key.DOWN
|| is a logical OR
The whole case || case thing returns a boolean which is either true or false, which, when subtracted from steps converts to 1 if true and 0 if false.

Hmm... This is a clever way of looking at it, I never knew that the || made a boolean, i always assumed it just acted as a simple "this OR this". I thank of thee


18.

Happy

Topic: A quick question

Posted: 01/24/06 03:39 PM

Forum: Flash

Ah, elseif. I never thought about that.
Thank you very much, i shall impliment this into my flash now.
Thank you once again :)


19.

None

Topic: A quick question

Posted: 01/24/06 03:37 PM

Forum: Flash

Originally, according to my movecode, he is able to, but I guess stopping him from doing so might fix the problem, I'm not sure.
So in short, no I do not :)


20.

Questioning

Topic: A quick question

Posted: 01/24/06 03:32 PM

Forum: Flash

I am in the process of making a crude, rudimentary RPG game, for gits and shiggles (and for a school project). I'm just wondering on this one thing: i made a function by where if any arrow button is down

if(Key.isDown(Key.ARROWBUTTON))

Etc., then the variable "steps" decreases by one (it begins at 100).
My code so far is this:
this.onEnterFrame = function(fight) {
if (Key.isDown(Key.RIGHT)) {
steps--;
}
if (Key.isDown(Key.LEFT)) {
steps--;
}
if (Key.isDown(Key.UP)) {
steps--;
}
if (Key.isDown(Key.DOWN)) {
steps--;
}
};
(Crudely done i know but i aint good at AS)
But if i have more than one key down at a time (eg right and up) then it decreases by two each time, which annoys me greatly as you can probably guess.
Is there a better way to do this, is what I ask of you?
You can either give me the code straight out, or give me the function I need, and possibly an example.
Thanks for helping me guys, i really appreciate it.


21.

None

Topic: AS: Game (part 2)

Posted: 08/24/05 09:07 AM

Forum: Flash

This coding is quite cool :D
I was wondering, however I was wondering if there was a way to execute this code at a certain time, say in the middle of a movieclip rather than simply on a keypress.
I am working on it as you read this message to hopefully try and find it out for myself, but if anyone helps me as well that would be greatly appreciated.
Cheers all for a great code!


22.

None

Topic: Build a Robot 2.0 Screenshots

Posted: 08/21/05 05:10 PM

Forum: General

And This be mine

Build a Robot 2.0 Screenshots


23.

None

Topic: I've made a jumping engine for all.

Posted: 08/19/05 10:14 AM

Forum: Flash

Hello, it is me again. I am just wondering if you have the code for your engine so that when you release space you stop jumping. I remember seeing it somewhere before, cant remember for the life of me where though. Just hoping you can help.
If you can, I thank of you greatly.
If not I still thank you greatly for the rest of the code.
~FFKing~


24.

None

Topic: Problem with jumping

Posted: 08/19/05 08:38 AM

Forum: Flash

Ok, I am using Rystic's jump code, and it is working perfectly. the only problem is my man is holding a sword, and it's tip is lower than the man's feet. Now, I have centered everything, and when it jumps he jumps fine, but when you let go of space his _y position goes up a little bit (not like jumping higher, as shown in the diagram below. If you cannot understand it please emailo me and I will send you the swf of it, of the fla of the actual jumping file if you wish

Problem with jumping


25.

None

Topic: I've made a jumping engine for all.

Posted: 07/07/05 03:43 PM

Forum: Flash

I found messing around with the maxfall variable stopped my guy from falling thru. (Mine was 10 and i had three platofrms, he fell off the 1st and landed ok, but the other two he went thru the floor). My guy is 25x25, movespeed of 5, maxfall of 8.

I do reccommend trying the altering of the maxfall var. It worked for me. I find about character height devided by 3 works quite well, but thats for me.

hope this can help anyone


26.

None

Topic: British Voice Actors!

Posted: 07/07/05 03:05 PM

Forum: Flash

Wow, I havent been back here in a while.

Just a question, did my final sound get to you? As it was sending my internet crashed (router kinda exploded) so I wasnt sure. If not and you still want me to try out then please say, if not then just say otherwise.


27.

None

Topic: Actionscript codes here!

Posted: 05/06/05 04:58 PM

Forum: Flash

As a question:
I have a code so that my enemy MC (instance enemy) moves towards my character (instance of circle) on both ways, but how can I make it so that when it is close to circle (+= 15 or -= 15) it will stop moving and go to an attack frame (3).
Please help.
The code I am using just makes the enemy speed up. Here it is:

onClipEvent (load) {
movespeed = 5;
}
onClipEvent (enterFrame) {
if (_root.circle._x>this._x) {
this._x += movespeed;
this.gotoAndStop("enemyrun");
this._xscale == 100;
}
}
but this doesnt work. Can someone help me?
Thanks in Advance,
FFKing


28.

None

Topic: British Voice Actors!

Posted: 04/26/05 02:58 PM

Forum: Flash

At 4/26/05 12:04 PM, -Ikka- wrote: How can you be UK-ish?

It's me trying to be funny and failing. Instead of British, UK-ish (and I be from Devon, the inbred farmer land :D )

Oh and btw what audio recording device you reccommend I use? the only one i have is the default windows sound recorder, which picks up all my static.


29.

None

Topic: British Voice Actors!

Posted: 04/25/05 02:50 PM

Forum: Flash

I am UK-ish, and am eamiing you shortly


30.

None

Topic: Actionscript codes here!

Posted: 04/25/05 02:10 PM

Forum: Flash

At 4/25/05 02:45 AM, sactownboy10 wrote: can someone tell me the key codes for all the letters thanks

What Version of Flash you using? if you have MX2004, then go onto the help menu near the lower bit of the screen, click on the "help" tab rather than the "how do I" tab, then double click on the book that says "Actionscript reference guide", then find the book saying "Keyboard keys and key code values overview" (or "Keyboard keys and key c..." if your screen is small) and then there is a list of submenus, with keycodes for 1-z, 1-9 and others.
To help you understand how it works:

if(Key.isDown(Key.UP)){
//stuff;
}
the above is for a key with its own name (such as UP, RIGHT, SPACE or ENTER etc.)

if(Key.isDown(65)){
//stuff;
}
That is for use with a key without its own name (the 65 means A, so 66 would mean B, until Z which is 90) Notice you dont have to put the (Key.KEY) bit, as the keycode it represented by the number.

Did that help, or Did I just confuse you more?
If i confused you, sorry, and ask me to explain again.
If not, then glad I could help!
~JD~


All times are Eastern Standard Time (GMT -5) | Current Time: 08:11 AM

<< < > >>

Viewing 1-30 of 358 matches. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 1012