Be a Supporter!
Response to: AS 2 - Can this be easily done? Posted January 7th, 2012 in Game Development

Yes you can do this, and it isn't hard. It's just string manipulation. Check out the string class in the references: http://help.adobe.com/en_US/FlashPlatfor m/reference/actionscript/3/String.html

That is AS3, so not every method is available in AS2, but since flash shows you what methods you can use, you should be able to figure it out what to use.

Response to: Paid job, 1-2 days of work $40 pay Posted January 7th, 2012 in Game Development

What kind of project is it?

Response to: Mochi Highscore Board? Posted January 6th, 2012 in Game Development

Mochi has a very good help guide, you should have noticed it when you downloaded the API. Hell, they even give you the correct code to copy/paste. Dude, put some effort to it.

Response to: ["clip"+i] in AS3 ?? Posted January 4th, 2012 in Game Development

Well, the bottom line is that the bg's you have in your library are nothing but graphics. If you want your bg1 class to have the movieclip bg1 linked to it, there's a couple of ways you can do that:

1. Create an instance of the bg1 mc and pass it as a parameter to your bg1 class. If you do this then you can use the one movieclip with 15 frames way.

2. Extend the bg1 mc in your bg1 class, etc. This is somewhat similar then as in AS2 you write code inside a movieclip.

Response to: ["clip"+i] in AS3 ?? Posted January 4th, 2012 in Game Development

What do you mean by "they have class scripts"? As you can't add code inside movieclips in AS3, I have a feeling you have some really bad system set up and thus you are in trouble. If you want further help, maybe explain a little more how you have your stuff set up.

Response to: ["clip"+i] in AS3 ?? Posted January 4th, 2012 in Game Development

Most times in this kind of situations you are better off putting all the bg1-bg15 into a same movieclip different frames, bg1 goes to frame1 etc. Then just use the gotoAndStop method to show the bgX you want.

Response to: Debug error in flash develop Posted January 2nd, 2012 in Game Development

FlashDevelop doesn't trace anything. You need to set the "external player" to run the debug player (you can get that from adobes site) and then you will see traces.

Response to: Error 1046: AS3 Posted January 2nd, 2012 in Game Development

Have you imported the timeevent?

import flash.events.TimerEvent;
Response to: AS3: Timeline vs classes Posted January 1st, 2012 in Game Development

Download FlashDevelop and choose AS3 project with preloader, that's one problem less for you to start :P.

Response to: Determining What The Url Is In As2 Posted January 1st, 2012 in Game Development

I'm not sure about that. I have faint memories of seeing people complaining that some sites hotlink their games and thus bypass the sitelock code they have. Best way to know for sure is of course to test it yourself, shouldn't be hard if you got your own site.

Response to: Actionscript 3 Quiz Game Textfield? Posted January 1st, 2012 in Game Development

What the user typed in the textfield is contained in the 'text' property, so if your textfield is called 'myTxt' then it's in 'myTxt.text'. Then just use the if-clause to check if it's "London".

Response to: Determining What The Url Is In As2 Posted January 1st, 2012 in Game Development

That doesn't make any sense.

Response to: [AS2] Flash Random() problems Posted January 1st, 2012 in Game Development

Well, you aren't actually checking what the wallspawn is.

== checks for the condition
= sets a value

Response to: Determining What The Url Is In As2 Posted January 1st, 2012 in Game Development

Here's the sitelock code many use (as2):

// get everything between the "://" and the next "/"
	urlStart = _url.indexOf( "://" )+3;
	urlEnd = _url.indexOf( "/", urlStart );
	domain = _url.substring( urlStart, urlEnd );

	// get rid of any prefixes before the second to last "."
	LastDot = domain.lastIndexOf( "." ) -1;
	pfixEnd = domain.lastIndexOf( "." , LastDot ) +1;
	domain = domain.substring( pfixEnd , domain.length);

Domain is the site, so for example in here it would be "newgrounds.com".

Response to: enemy wave math formula Posted December 29th, 2011 in Game Development

What's wrong with defining parameters for 50 different levels? All you need to do is define how many of each enemy type is in a level, and then pass these values to a function that creates you the level array. Pretty easy and simple and you got full control over the difficulty of your game. You start randomizing the wave strengths, you can get complaints from the players (too easy, then too hard etc.). Making games shouldn't be a 5 minute job anyway, it's worth the effort imo.

Response to: Test my game so far Posted December 28th, 2011 in Game Development

Well, swfcabin is a rubbish site. Use the ng dump (go to your account).

The movement was indeed quite challenging to get the hang of. Maybe you could tweak the numbers a little more. I think he turns quite a lot and very quickly. I could get him to move straight no problem with just tapping the left / right, but if I had to suddenly do a left or right turn, it easily turned out to be an almost 180 turn or just simple much more than I wanted to.

Response to: Time2game: Submit A Game And Win! Posted December 27th, 2011 in Game Development

Seems like an attempt to get people to submit their games to your site and masking it as a contest. I mean 15$ for the first place and it's the only price? Also last time I checked, .tk is a free domain address. I used to have a .tk site as well back when I was still a kid. You can't even afford to get your own domain? But I suppose you aren't doing any harm, I just felt I had to point out the obvious stuff that aren't making you look so good.

Response to: Button question Posted December 26th, 2011 in Game Development

Hmm, you are making a random world generator and you are stuck on making a button that sends the playhead to the first frame? I'm speechless.

Response to: The Flash 'Reg' Lounge Posted December 25th, 2011 in Game Development

At 12/25/11 12:55 PM, Innermike wrote:
At 12/25/11 09:27 AM, ProfessorFlash wrote: So I guess what my point is; try the Quick Auction.
Hmm, I didn't know there was such a feature, I'm tempted to make a new account just to give it a fresh start bidding, because it's at a point where the exposure is like, non-existant at the moment. But I have a feeling that would be frowned upon :(

Nah it's not frowned upon cuz you get banned so fast nobody will have noticed you even did it (other than the admin ofc). Nothing to see, nothing to frown upon :).

Response to: Tell me how this preforms. Posted December 25th, 2011 in Game Development

You are all being dicks :P. First of all, going "lol" on someones work and then saying 'this is how you do it better' is a pretty douchy move, let's not kid ourselves about that. Secondly, JoSilvers reaction to it is also bad, he could have taken the high road there and just ignored it if he wasn't interested in the teachings, but he didn't so a douche point is awarded to him too. You guys are 1-1. Let's call it a tie, shall we and move on?

*puts on his fireproofcoat*
Response to: Tell me how this preforms. Posted December 25th, 2011 in Game Development

When I opened it, it was running 50-54 fps (I looked it for maybe 1 minute). I left it open in the other tab and started reading this thread. Later when I check it again (it was open whole time in the other tab), the fps is now 37-39.

I have:

Core 2 duo E8500 @ 3.16GHZ
3.25gb of ram
Geforce 260 GTX

Response to: The Flash 'Reg' Lounge Posted December 25th, 2011 in Game Development

At 12/24/11 06:34 PM, Innermike wrote: Anywho, haven't posted in this thread for like 6 months or something, I'll be frank about why I'm here. I've had a game on FGL for about 4 months now, and it seems nobody wants it, which I just find ridiculous, not because I think it's "such a great game" but because the previous two games I sold on FGL were done in less than a month each for 2.5k and 1k but they weretotally shitty, super buggy games what's up with that? I sent out emails to about a dozen sponsers directly and no responses in 4 months.

Am I missing something? FGL forums are meh, I figure this is the only place I can trust for experienced advice.

try it on FGL http://www.flashgamelicense.com/view_gam e.php?game_id=20607
or here http://innermike.com/flash/Defendoids.ht ml

I had the same situation on fgl. Had my game there for months, got decent amount of views but not real bidding interest (got a few under 100$ bids). I think many sponsors don't want to bid on games when they are just there. They want a deadline for the bidding before they will bid. That's why you always hear the stories how the bidding activity increased by 10000% in last call. So I put my game on the Quick Auction which is like a 14 day last call and finally got more bids. They weren't so high either, but atleast higher than before and after so long wait I was fine with the price I got. So I guess what my point is; try the Quick Auction.

Response to: The Flash 'Reg' Lounge Posted December 23rd, 2011 in Game Development

Does renaming the forum really change anything? I can't imagine that there are many people lurking the bbs page and not coming here because it's called "Flash" forum and they would suddenly come here if it was named something else.

Response to: Programming Problems [AS2] Posted December 23rd, 2011 in Game Development

The following code uses the gotoAndPlay() method to direct the playhead of the mc1 movie clip to the frame labeled "intro" in the scene named "Scene 12":

mc1.gotoAndPlay("intro", "Scene 12");

Straight from the references. The code is super simple. If you say that isn't working then the problem is somewhere else. Check that the scene name is correct, Scene 12 isn't same as scene 12.

Response to: Help with Error #1502 Posted December 22nd, 2011 in Game Development

while (totalMiners<60)

I don't see totalMiners being increased in your code. You have a forever loop.

Response to: save something as swf ingame Posted December 21st, 2011 in Programming

If you mean that you want an user to save a .swf file on runtime, then it's not possible.

Response to: parent has no child Posted December 20th, 2011 in Game Development

Think about a house with two floors. You are on the bottom floor, and your mom is on the top floor. You check yourself, ok you exist. You know your mom exist otherwise you wouldn't be alive. Then you call your mom with your cellphone and tell her "Please mom, could you smack me in the head". What does your mom answer you? She answer, "But son, I can't see you as you are not in the same floor". If you want to smack yourself in the head, then use your own hand.

Response to: error 1069 Posted December 18th, 2011 in Game Development

speedX = MovieClip(this).sX;

What is that supposed to mean? Do you even understand yourself what you write there? sX is a parameter given to the function, you reference it with sX. What is this MovieClip(this) stuff?

Response to: Cascade of Errors AS3 Posted December 18th, 2011 in Game Development

How about you post your code as well.

Response to: Actionscript 2 - help with variable Posted December 17th, 2011 in Game Development

You just need another number variable that increases by one at every enterFrame and you check with an if-clause when the number hits a certain value and when it does you run your actions (increase your money). If you want to measure one second, it's the same as your games fps.