Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsYes 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.
What kind of project is it?
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.
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.
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.
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.
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.
Have you imported the timeevent?
import flash.events.TimerEvent;
Download FlashDevelop and choose AS3 project with preloader, that's one problem less for you to start :P.
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.
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".
That doesn't make any sense.
Well, you aren't actually checking what the wallspawn is.
== checks for the condition
= sets a value
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".
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.
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.
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.
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.
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 :).
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*
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
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.
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.
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.
while (totalMiners<60)
I don't see totalMiners being increased in your code. You have a forever loop.
If you mean that you want an user to save a .swf file on runtime, then it's not possible.
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.
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?
How about you post your code as well.
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.