Be a Supporter!
Response to: Flash + Sql = Scoreboard Posted May 13th, 2009 in Game Development

Read about "loadvars" in the help file (F1).

Response to: AS3 platformer - wall collision Posted May 12th, 2009 in Game Development

You do it the same way with verticals as with horizontals. The difference is that instead of changing the _y movement on collision, you change the _x movement. Get it?

Response to: Easier code? Posted May 10th, 2009 in Game Development

At 5/10/09 04:25 PM, Veranan wrote:
At 5/10/09 04:19 PM, ProfessorFlash wrote:
At 5/6/09 11:41 PM, Veranan wrote:
At 5/6/09 11:33 PM, apeskape wrote: K this should be pretty close to working, I haven't tested it out personally but perhaps someone can expand on it.
Thanks!
this works BUT unfortunatly now the gaptimer does not work...
any one know why ??
Study the code and figure it out yourself. That's what we would have to do in order to give you an answer. Isn't it much more beneficial if you do it yourself, hmm?
of course i have tried. and this is why im posting on the forum. not cause im Lazy but cause i need Help =D

There's like 30 lines of code. How hard did you try?
If there is some specific line in the code that you don't understand, then ask.
It doesn't help you at all if you just say "this doesn't work, fix it for me". Try to understand the code yourself, then you will also understand what it does and what it doesn't do. Then you can easily pin point the problem yourself, and then you will be a better coder.

Response to: Easier code? Posted May 10th, 2009 in Game Development

At 5/6/09 11:41 PM, Veranan wrote:
At 5/6/09 11:33 PM, apeskape wrote: K this should be pretty close to working, I haven't tested it out personally but perhaps someone can expand on it.
Thanks!
this works BUT unfortunatly now the gaptimer does not work...
any one know why ??

Study the code and figure it out yourself. That's what we would have to do in order to give you an answer. Isn't it much more beneficial if you do it yourself, hmm?

Response to: Need an Animator ($ offered) Posted May 7th, 2009 in Game Development

At 5/7/09 04:20 PM, ForNoReason wrote:
At 5/7/09 04:18 PM, nathanielmilburn wrote: $20 isn't very much at all
I know, but its all I got to offer right now. Wanna get this done ASAP, but if I can't ill try to scrape up some extra money....

You want to do this special thing for your wife, and your cap is 20 bucks? She's one lucky lady :D.

Response to: AS 2 AI scripting help Posted May 7th, 2009 in Game Development

Well if you want to make such simple AI as it to move left or right, like in platformer games, then it's quite simple. You got your main character moving coded, right? Basically you copy that code and modify it. For example your main char moves to the left when you press the left arrow key, remove the left arrow key event and make the unit move always to the left. When it hits a wall for example, change it's direction to move to the right. And there you have it, simple AI. You can expand on that to make it react on other things.

Response to: [as2] Enemy Collision Problems Posted May 5th, 2009 in Game Development

Write a better problem description, and post only code relevant to the problem. That might help you get some help.

Response to: creating multiple TextFields Posted May 5th, 2009 in Game Development

At 5/5/09 07:23 PM, tcc85811 wrote: Please ignore the many parameters in my function. I can't figure out why the TextFields get replaced by each new instance.

You define the "txtField" variable outside of the function, and then keep replacing it in the function. That's why only the last one shows up because it's the only one that isn't replaced anymore (since it's the last one :P). You are not creating a new textfield, you are using the same one all the time.

Response to: dynamic variable name Posted May 5th, 2009 in Game Development

You can do it, but I would suggest you use Arrays.

Response to: wtf is "NAN" ??? Posted May 5th, 2009 in Game Development

At 5/5/09 06:47 PM, Veranan wrote:
At 5/5/09 06:44 PM, evan210 wrote: Not a Number.
/thread.
uhh now i know what it stands for but how do i fix my score counter??

You asked what is "NAN", he answered what it is. Now you say you knew that, but expected us to read your mind and know that you didn't want the question you asked to be answered, but you wanted the question that only existed in your head to be answered (hence our need to be mind readers)?

Kids these days... :) (ok they were like that before too :P)

Response to: Coder Needed - How many % want? Posted May 4th, 2009 in Game Development

What kind of game is "DDR clone"?

Response to: Am I not using "and" correctly? Posted May 3rd, 2009 in Game Development

At 5/3/09 08:31 PM, squidly wrote: onClipEvent (enterFrame) {
if (_root.bullets<0) && !reloading){ <--- no bullets
gotoAndPlay(3); <--- frame where the gun's reloading
reloading = true;
}
}

You close the if before the and.

Response to: spaceball Posted May 2nd, 2009 in Game Development

Hiding the mouse makes the game annoying.

Response to: Making A Website! Posted May 1st, 2009 in Game Development

It feels like everything is trying to get my attention. I don't know where to look.

Response to: Is this an unrealistic goal? Posted May 1st, 2009 in Game Development

How could we know? It's up to you. If you want to know that can someone who knows what he is doing do that kind of game in 4 months, then yes easily. But I or anyone else here on newgrounds can't tell if you can since we don't know you.

Response to: Jump Script Posted April 29th, 2009 in Game Development

Add a negative number (=jump height) to the variable that controls the _y movement.

Response to: Easier action script code? Posted April 29th, 2009 in Game Development

At 4/29/09 03:51 PM, Veranan wrote: well i tried looking it up and um after reading a few sentences i actually got pissed off...

Well then give up and go cry in the corner.

Response to: text formatting, JAVA Posted April 24th, 2009 in Programming

At 4/24/09 06:35 AM, Jon-86 wrote: What your trying to do isn't something generic that lots of people will do on a regular basis, so yeah you have to implement specific functionality yourself. You have an idea in your head, its your job to make it happen. Their wont me a method or class for every single problem you ever encounter. In fact 5-10 years ago Java didn't have about half of the things it dose now. But people developed them and they made it into the SDK that's how it goes.

Thank you for assuming I'm so dumb shitty kid who comes to forums and demands everything while not wanting to do any work himself. Limiting the characters on a textfield and specifying which characters are allowed seems like pretty basic shit to me.

When I tell other programmers that I'm learning java, they usually laugh at me and/or tell me it's shit language. I haven't understood what they were on about, but I'm starting to get the picture.

tl/dr: Thanks, problem solved. I'll make it the hard way.

Response to: text formatting, JAVA Posted April 24th, 2009 in Programming

So you are saying that there isn't already a method available that I can use, and that I have to code this myself?

text formatting, JAVA Posted April 23rd, 2009 in Programming

Here's what I want to do: I want to limit what characters the user can write into a textfield. Like for example I don't want the user to write numbers in to the field where I want him to write his name. I also want to limit the amount of characters the user can use, like to 20 characters.

Here's what I've done. I got this from a tutorial:

//	A convenience method for creating a MaskFormatter.
    protected MaskFormatter createFormatter(String s) {
        MaskFormatter formatter = null;
        try {
            formatter = new MaskFormatter(s);
        } catch (java.text.ParseException exc) {
            System.err.println("formatter is bad: " + exc.getMessage());
            System.exit(-1);
        }
        return formatter;
    }

Then I just set up the text field:

pname_txt = new JFormattedTextField(createFormatter("*****"));

So that sets up that I can insert 5 any characters into the textfield, and at the same time limits the amount of chars to 5. It works, but it seems clumsy.

Here's the problems. First of all, I need to manually set the amount of characters, so if I wanted to limit the chars to 20, I'd have to put 20 of those asterixes instead of 5. Then that also is kinda 'hard coded'. Like if I want to allow letters and the use of 'space', how could I do it? I would need to "guess" where the space comes down to the letter. And names are different length so that is clearly impossible. Then there is the problem that if the char limit is set to 5, the text field length is always 5. If I wrote "ass" and then got the value of the text field, it would give me "ass ", so the length I don't use it gives me as spaces.

So all in all this just seems very inefficient and clumsy to me. Is there an easier/better way to set up what I want?

(I hope you guys understood all of this lol, feel free to ask if you didn't :) )

Response to: Flash Cs4 Is It Worth Getting? Posted April 22nd, 2009 in Game Development

At 4/22/09 08:06 AM, suicidalnene wrote: welll I tried out the trial on a new fast computer and it was waaaaaaaay too complicated and slow, just get CS3 or 8

Wot? They have CS4 at my school. I got CS3 at home, and really I can't tell the difference but that is probably because I'm not an animator :P. If you are a coder, CS3 = CS4, get either one although I don't think adobe sells CS3 anymore (don't they always stop selling old versions?). If you like to animate then CS4 is a big step forwards. Either case you should get it.
And about the slowness, the school comps aren't really top notch, something like 2.4ghz if I remember correctly, and it wasn't slow, it was normal like CS3.

Response to: if conditions, JAVA Posted April 21st, 2009 in Programming

Yeh that solved the problem. Thanks a lot :).

if conditions, JAVA Posted April 21st, 2009 in Programming

This should be a relatively simple problem, but I just don't get it why it's like this. Here's my code:

playername = pname_txt.getText();
playernumber = pnumber_txt.getText();
if (playername != "" && playernumber != "") {
//my actions
}

Now the idea here is simple. I get the values of two text fields in to varibles. Then I want to check with an 'if' that they are not empty. Because I don't want anything to happen if they are empty, I want my actions to be run only if both fields have something in them.

The problem: my actions are always run even when the text fields are empty. Why is it like this?
(the varibles have been defined earlier in case someone was wondering)

Response to: As2 Lives. How To Create Them? Posted April 19th, 2009 in Game Development

At 4/19/09 09:36 AM, Lolzer wrote: Still a little confused. Explain a little bit in depth please?

Lol. I don't usually bash newbs trying to learn, but you call yourself a programmer (your sig+profile) and you didn't understand that... just lol.

Response to: ActionScript 3 - Multiple platforms Posted April 18th, 2009 in Game Development

Hello and welcome to the forums. Generally people are too lazy to download fla's. It's a better idea to copy paste your code here inside the code tags: <.code> <./code> (without the dot).

Response to: Top-view shooter bullets AS2 Posted April 13th, 2009 in Game Development

At 4/12/09 08:12 PM, SpyreWorks wrote: I guess I have to look into attachMovie then :P

Did you actually do that? Because that should have been the answer to your problem :P.

Response to: fading dynamic text Posted April 9th, 2009 in Game Development

Of course, I always forget to embed :P. Thanks.

fading dynamic text Posted April 9th, 2009 in Game Development

What I'm trying to do: I have put a dynamic text box inside a movieclip. I want to insert text to the dynamic text box with a code and after 2 seconds I start fading the movieclip that contains this text (by reducing the mc's alpha value).

Problem: The text doesn't fade. My code is working right, I added a black dot to the mc just to see if the fading works, and it does work for the dot, but the text remains the same. I switched the text box to static text, and then it fades, so this problem has to do with the dynamic text box. And I need to use the dynamic text as I can't insert strings with a code to static text.

I've been hitting my head to the wall for a while now. Is there a solution or a work around for this problem?

Response to: learn flash actionscript 3.0 Posted April 8th, 2009 in Game Development

At 4/8/09 11:14 AM, bigDproductions wrote:
At 4/8/09 11:00 AM, ProfessorFlash wrote: on the internet
No sh*t. Does anyone know a website.
Where I can easily learn AS3?
Tutorials. Guides. Tells me straight out, do this to make this happen.
I've searched on the internet, and nothing teaches me actionscript 3.0

It may help if you don't type in the search engine "chicks with big dicks eating shit". You may want to try something like "actionscript 3 tutorial". Oh wow, I just found a ton of AS3 tutorials, I guess that means you are a dumb fuck :).

Response to: learn flash actionscript 3.0 Posted April 8th, 2009 in Game Development

on the internet