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 ViewsI just picked up a second monitor for coding purposes, and so I thought I'd try it with Flash as well. However, I can't figure out if I can have 2 Actionscript files open at the same time in different monitors. Anyone with experience in this got advice on how to set dual-monitor stuff with CS3 up?
If I use a font on my copy of Flash that's not one of the standard fonts (Times, Arial, etc) do I need to embed it into the program for others to see it? If so, any links or advice on how to do that?
At 6/26/11 03:27 PM, Attila0413 wrote: Control -> Disable Keyboard Shortcuts, in the test player
Aha! I knew it was something obvious that I was missing. Thanks!
Is there a way to disable shortcuts within Flash while testing a movie? My game that I'm working on uses the z key, but doing so during the test switches to the magnifier tool. Can I disable this?
Is it possible to have an AS3 class that can be used with multiple MovieClips? I could just copy and paste the class into a new file with the name of the other graphic, but I feel like there's an obvious variable or something that I'm missing.
Alright, thanks. Yeah, now that I've done a little bit with it, I can see how it's very similar. Does anything like JavaDocs exist for AS3, or should I just use normal comments? I'm promising myself that I'll be good and actually comment my code.
A few years ago, I made a couple of small games in AS2. I want to go back now and learn AS3 to make some better games, and I've learned a lot of Java over the past couple of years. Just doing a couple of the basic tutorials, it seems pretty similar, but should I approach it differently than I would a Java program? Also, how hard will it be to learn in general?
Use the distance formula:
http://www.purplemath.com/modules/xyplan e/dist07b.gif
You would probably want something like
if(_root.score>=whateveryouwant)
{
_root.reward.unlocked=true;
}
Oh, well, never mind. I realized that for some reason the preloader I was using didn't work, and so when I put the Newgrounds one in, everything was solved.
At 2/21/09 11:09 AM, shmasmasnash wrote: Here's it in the .fla:
http://img144.imageshack.us/img144/2129/
dotfla.jpg
Here's it while testing:
http://img89.imageshack.us/img89/1111/do tswf.jpg
Oh, and I forgot to mention that the dynamic text boxes still display text when I run the program, and the movie clips off to the side don't disappear when I move them onto the stage.
Here's it in the .fla:
http://img144.imageshack.us/img144/2129/
dotfla.jpg
Here's it while testing:
http://img89.imageshack.us/img89/1111/do tswf.jpg
At 2/21/09 02:10 AM, echeese wrote: Is the text rotated at all?
No.
:is only a portion of the text disappearing or the entire thing
The entire thing.
Now this is getting weirder - some of the movie clips are disappearing when I go into test mode. Hold on, let me get a screenshot...
At 2/20/09 10:07 PM, fluffkomix wrote:
are you sure you didnt put it on a masking or motion guide layer?
Yeah, I'm just making a semi-simple game.
Oh, and if it's of any consequence, I'm using CS3.
Although I have static text in my .fla, when I preview the movie or look at the .swf, the text is gone. However, the text is there when I put on debug mode. Any idea what could be happening?
Second, you were using "=" which ASSIGNS something, to check if they match, use "=="
-.- Agh, that's the second time that I've done that in two days. Thanks!
For some reason, when I try to compile my flash, the following two statements return errors:
if(_root.currProj>1&&_root.currBase!=4&&
_root.currBase=5)
and
if(_root.currProj<3&&_root.currDisplay!=
0&&_root.currBase!=4&&_root.currBase=5)
The error returned is
Left side of assignment operator must be variable or property.
Anyone know what it could be? Thanks!
Ah, so it seems. The error was in a different part of the code. -.- Thanks!
If I have an int and a string and I want to condense the two into one string, how would I do that? For example,
projectileCount=10;
nm="proj" + projectileCount;
I want to get nm to equal proj10. I'm sure there's some obvious way to get this with parsing that I'm missing. Thanks!
Which would use up the least resources when trying to determine a collision - a hitTest between two movie clips, or using the distance formula? Thanks!
Would it be something like
if(character.isInGrass())
{
i=Math.random();
if(i<something)
{
fight()
}
}
I'd reccommend Beginning Flash Game Programming for Dummies if you're new to learning Flash.
I've been searching for a while on the Flash Ninja Clan website, but I can't seem to find a 'Contact Us' page. Does anyone know his email adress? Thanks!
Oh, thanks! I checked the key-code library on a site, but it didn't include that. -.-
Does anyone know how to detect a right-click in Actionscript 2.0? Thanks!
Is 1923458237602398012476893591238475634895 736879124581273547625978562346 divisible by 16?
I could continue giving you large chains of numbers and ask if they're divisible by 16, and you wouldn't even have to know what the divisor is to know it.
It's divisible by 16, but the answer isn't an integer.
Okay, what do you suggest I change?
Do you think that this is a good build? I have a budget of around 1400.
https://secure.newegg.com/NewVersion/Wis hList/PublicWishDetail.asp?WishListNumbe r=11392307