Be a Supporter!
Response to: Limit to # of dynamic textboxes? Posted May 26th, 2012 in Game Development

At 5/26/12 03:47 PM, webufs wrote: I have a frame with 4 dynamic text boxes, and I have checked many, many times that they are referenced correctly (which included renaming the instances and their respective reference, as well as replacing the 'faulty' dynamic textboxes with a new textbook with a different instance name). The problem seems to be that flash will only let me update 2 of them, and will refuse to recognize any additional dynamic textboxes. Is this the case? If so, how can I work around this?

There is no limit, and if there is, it certainly isn't two, lmao. Explain more where the textfields are located, and post the code related to updating them.

Response to: flash as2 array help Posted May 26th, 2012 in Game Development

1000+GCount2

Change to:

10000+GCount2

Response to: how to upload a MOV in newgrounds? Posted May 25th, 2012 in Game Development

The place you are looking for is www.youtube.com

Response to: item not removing from stage? Posted May 24th, 2012 in Game Development

At 5/24/12 02:22 PM, Pytox wrote:
At 5/24/12 12:59 PM, ProfessorFlash wrote: Your code is an abomination, and you are constantly making it worse. I do not understand why you didn't read Milchreist first post in this thread and just follow the instructions (it's the fifth post in this thread). Stop this madness please.
I tried with e.currentTarget and doesn't work ...

Oh it didn't work? Write a ticket to Adobe that their coding language is faulty and it doesn't work. I mean what else could it be, right?

Response to: item not removing from stage? Posted May 24th, 2012 in Game Development

Your code is an abomination, and you are constantly making it worse. I do not understand why you didn't read Milchreist first post in this thread and just follow the instructions (it's the fifth post in this thread). Stop this madness please.

Response to: Hey could someone help me with this Posted May 23rd, 2012 in Game Development

From what I gathered from his post, he wants us to give him a plot twist for his platformer where the main character can travel back in time.

So maybe after he has traveled back in time, he finds out he was never born and that his mother is really his father and that insects have taken over the world because he stepped on a ladybug when traveling back in time and that gave the nazis a technology advantage in the world war two which they used to make experiments on bugs who then turned like godzilla and half of the world is now a desert wasteland where water is very rare so it costs like a lot of silver which is now the main resource of the world because you can make drinking cups out of silver which only the humans can use because the insects don't have thumbs on their hands.

Response to: Script Crashing Flash? Posted May 23rd, 2012 in Game Development

Don't use while-loops if you don't know how they work. They are the easiest way to crash flash. The while-loop runs as long as the condition stated in it is true, that means you must always have an event inside the while loop that makes the condition eventually false so the loop breaks. You have failed to do so, meaning the while-loop will run forever and flash can't handle forever so it crashes. Read your own code and understand what you have written.

Response to: Checking if MovieClips Exist? Posted May 23rd, 2012 in Game Development

contains()

Response to: I need a programer. Posted May 21st, 2012 in Game Development

At 5/21/12 05:58 AM, who-of-who wrote: That isn't the fact, look here.

This is what I have drafted for the first tier of the quiz, I need a programmer to make me a like system like the impossible quiz, that is all.

You've googled that picture of the pony (rainbowdash?), so what you've actually done there is chosen a font and drawn 4 white turds.

Response to: hitTest Array vs Array Posted May 20th, 2012 in Game Development

At 5/20/12 04:11 PM, egg82 wrote: that would depend on the size of the arrays. If they're the same size, then why not? Two birds with one stone.

Please do explain how you cycle through all possible hit test scenarios with one loop on two arrays that are same length.

to speed things up; you can't, just think about it for a second
Response to: hitTest Array vs Array Posted May 20th, 2012 in Game Development

There's nothing special about the syntax, just put another loop inside the loop. Example (pseudo code):

for (var i:int = 0; i < 5; i++) {
       for (var j:int = 0; j < 7; j++) {
             hittest.enemy[i] with bullet[j]
      }
}
Response to: Array worked, more problems... Posted May 18th, 2012 in Game Development

At 5/17/12 11:21 PM, Barzona wrote: I imagine that since I am loading these particular objects from an array that the rules are different. I've tried googling hittest array objects and the error and have turned up nothing. Any ideas?

Rules are always the same. Your error tells you that the 'BlackEmerald' is not a movieclip and you are trying to make it as one. You've probably failed with the instance names. Trace the array and see what you have inside of it.

Response to: Make first button selected? Posted May 14th, 2012 in Game Development

At 5/14/12 04:55 AM, Pytox wrote: Hi,

I am trying to make the first button selected,
I currently have buttons added on stage but i want first one have a white border around it,

for (var i:int = 0; i < buttons.length; i++)
{
buttons[i]= new invtBtn();
addChild(buttons[i]);
buttons[i].name = "btn" + i;
buttons[i].x = 70+(75*i);
buttons[i].y = 40;
buttons[i].addEventListener(MouseEvent.MOUSE_UP, curselectedItem);
}

Thanks for the help :-)

You are looping them through, so you know what the first button is. Write:

if (i == 0) {
//do stuff to my first button
}

If your question was how to draw a white border, then look at how the drawing API works in flash.

Response to: [AS3] - Dynamic text blocks button Posted May 7th, 2012 in Game Development

At 5/7/12 05:09 AM, the1manwiththeplan wrote: Ok easy problem...The movieclip on the stage that I am using as a button has two layers inside it.
Bottom one vector data top one dynamic text. The button only works when I roll over the parts without dynamic text covering it.

Every other source Ive looked at tells me to set the dynamic text box to non selectable in the properties to fix it. The text box is non selectable. Ive checked multiple times.

Is there an easy fix? What Am i doing wrong? Any help appreciated.

Setting the textfield as non selectable only prevents users from painting the text with their mouse. The property to disable mouse interaction on an object is 'mouseEnabled', set that to false if you don't want something to interact with the mouse.

Response to: as3 following the player Posted May 6th, 2012 in Game Development

At 5/6/12 12:37 PM, wiseguyy wrote: How do I make the Enemy Class to get the hero's x and y coordinates?

You should handle the logic of the following in your main class. The enemy doesn't need to know anything about the hero, nor does the hero need to know about the enemy. But if you don't wanna do it the good way, you can do the bad way and for example pass the reference to the hero in the enemy constructor, or a super ugly way is to write: parent.hero (really not recommended)

Response to: rpg problem, wont move along y-axis Posted May 6th, 2012 in Game Development

this._y +- this.ySpeed;

There is a typo there. As2 doesn't give any compile errors? Write:

this._y += this.ySpeed;

Fixed?

Response to: Typewriter Effect Font Posted May 6th, 2012 in Game Development

This is just silly. The only thing I did was give the textfield the instance name 'showtext' as required if you look at the code. If you can't get that to work then there is two options what is the problem; your flash is weirdly corrupted and you should reinstall or you brain is corrupted and you should go see a doctor :). This isn't so hard, lol.

Response to: Typewriter Effect Font Posted May 5th, 2012 in Game Development

At 5/5/12 02:50 PM, DjangoEX wrote:
At 5/5/12 02:41 PM, ProfessorFlash wrote:
At 5/5/12 02:17 PM, DjangoEX wrote: http://www.newgrounds.com/dump/item/ee633937681a6215a33630fb 06c08564
When i put showtext in the instance name and erased the var now the words don't show at all.Help would be appreciated. Thanks!
The font you are using is garbage. Change font.
Thats not the actual font I'm using its just to show that the font is not changing in the movie.And did you see the words are coming up at all?

Your fla works fine for me. The text shows fine, the font I choose shows fine. I don't understand why you have problems.

Response to: Typewriter Effect Font Posted May 5th, 2012 in Game Development

At 5/5/12 02:17 PM, DjangoEX wrote: http://www.newgrounds.com/dump/item/ee633937681a6215a33630fb 06c08564
When i put showtext in the instance name and erased the var now the words don't show at all.Help would be appreciated. Thanks!

The font you are using is garbage. Change font.

Response to: Typewriter Effect Font Posted May 5th, 2012 in Game Development

At 5/5/12 01:51 PM, DjangoEX wrote: Here is a test file i have http://www.newgrounds.com/dump/item/a792bc9375416cff8d2ea261 987d90c8 . I put the font on webdings since that should be the easiest font to see.Now when u test the scene i don't get webdings font.If you could examine what i did wrong that would be great.

The instance name for your textfield is "" aka empty. It needs to be 'showtext'. You have written it on the 'var' field which is wrong (I have no idea what that field even responds to).

Response to: Typewriter Effect Font Posted May 5th, 2012 in Game Development

At 5/5/12 12:39 PM, DjangoEX wrote:
At 5/5/12 12:33 PM, PSvils wrote:
At 5/5/12 12:12 PM, DjangoEX wrote: The code works but it won't let me change the font.If someone could help me it would be much appreciated
How is it not letting you change the font?
The code I think has a set font I'm not sure. I made a dynamic text box then set the variable to showtext. The text that comes up is in a set font. I'm not sure if I'm suppose to put an entirely diffrent code to change the font but when i change the font in the dynamic text box nothing happens in the actual movie.

That code works just fine, and changing the font in the text box works too. I just tried it in a new project. Your problem is somewhere else, and I have no guesses.

Response to: Issue with moving bullets [AS3] Posted May 5th, 2012 in Game Development

Currently your bullet moves 10 pixels at the time of creation. You need to create a 'moveBullets' function that is run on enterframe event, and move your bullets there.

Response to: Need Game Programmer Posted May 2nd, 2012 in Game Development

I want it all, and I wanted it now (sing it).

Response to: Button problem (simple) Posted April 25th, 2012 in Game Development

At 4/25/12 12:55 PM, Keveta2 wrote: I did what you said, but it's not working.

My button name is 'knop1'.
The linemc is inside the button, on layer 2 (on top of button)

This is my code:

on(release){
knop1.linemc._alpha = 100;
}

What did I do wrong?

Well it seems that it just doesn't work like that. Not sure why, the button timeline must be a special case or something. Do same thing except put the linemc outside of the button, so it's on the maintimeline now on a layer on top of the button.

Response to: Button problem (simple) Posted April 25th, 2012 in Game Development

At 4/25/12 10:50 AM, Keveta2 wrote:
At 4/25/12 09:15 AM, ProfessorFlash wrote: The last...(gotoAndStop).
Yeah I know how this works, but it needs to be in a single frame :(

Any ideas?

Riight. Make a new layer on the button. Put a movieclip with your line in to that newly created layer (on top of the button graphics). Set the line mc's alpha to 0. Give the line mc instance name linemc. When the user clicks 'mybutton', say mybutton.linemc._alpha = 100;

Response to: Button problem (simple) Posted April 25th, 2012 in Game Development

The last frame on the button is invisible to viewers, it only lets you define the hit area for the button. So obviously you don't want to put your line there since you want to show it to people. There are multiple ways to do what you want, but since I think coding approach is too hard for you, you can do the easy way but requires little more work. So, put the text and the overlined text in a movieclip, normal text frame 1, overlined text frame 2, then just switch the frame on the movieclip when the user clicks the button (gotoAndStop).

Response to: Need Help Getting Started In As3 Posted April 22nd, 2012 in Game Development

At 4/22/12 02:40 PM, MSGhero wrote:
At 4/22/12 02:28 PM, milchreis wrote: http://milchreis.newgrounds.com/news/post/576285
We really do need stickied threads in these forums. Save us the trouble of posting that link 4-5 times a week.
Also, check out AS3: Main once you get the bare basics down.

Actually you should check out the AS3:References once you get the basics down. You won't really need tutorials anymore once AS3 *clicks* with you, just check the reference for everything you need.

Response to: Timer Not Updating Posted April 21st, 2012 in Game Development

The timer interval isn't counted as 5000 / speed, so increasing speed doesn't make any difference to the timer interval. You need to start a new timer in order to get it ticking according to the new speed.

Response to: ListingVariables highest to lowest Posted April 21st, 2012 in Game Development

At 4/21/12 11:01 AM, Spudzy wrote:
I linked you to four tutorials explaining arrays. They are not complicated.
If you can't be bothered to spend an hour or two (at most) learning arrays, why do you expect someone to be bothered to do your work for you?
Why's everyone going ape shit at me. I'm so sorry for what I have done.

Nobody is going ape shit. Your attitude towards learning a simple thing like arrays is just annoying some people. Arrays are one of the basic building blocks that you use in just about every project you do. To explain your situation in a different way; you are like a kid in a dinner table who says he can't be bothered to learn how to use the spoon and you want someone to spoon feed you. As your mother doesn't visit this forum, don't expect anyone to do it for you :).

Response to: ListingVariables highest to lowest Posted April 19th, 2012 in Game Development

At 4/19/12 05:25 PM, Spudzy wrote: *I don't need this to be in my game. Woow so complex??

This thread is funny :). Let me get this straight; you want us to write you a piece of code that you do not need?