I got it working. The main movie was basically trying to access things that hadn't yet loaded, so it kept throwing 2068 errors (related to streaming music) and 1009. Apparently, a lot of people are...
Type: Posts; User: Mickster; Keyword(s):
I got it working. The main movie was basically trying to access things that hadn't yet loaded, so it kept throwing 2068 errors (related to streaming music) and 1009. Apparently, a lot of people are...
I believe so.
I'm adding an event listener like this:
addEventListener(Event.ENTER_FRAME, run);
Then later, I've got this:
I've just made a preloader, which is a separate file that loads the main movie. When I try to compile the preloader, I get:
ArgumentError: Error #2068: Invalid sound.
All the code for the...
I just noticed a glitch. If you mouse click, say, 1 time, the timer will correctly increment by 15 seconds - but then it will stop when it gets to 15 instead of going all the way down to zero. Click...
Shaedo, I replaced my timer with yours, got the pickup working, and got all my existing timer-related features playing nicely with the new setup. Works great - many thanks!
That's what I need to do, Shaedo! I'll plug it into my game tonight and see how it goes.
Thanks, Sophie.
The compiler chokes on that first line - throws error 1046:
Type was not found or was not a compile-time constant: currentCount.
I assume you're trying to set the...
I made a ten minute timer that starts at 600 and counts down to zero. It displays the current count in a textfield called "textfield_time". Here's what it looks like:
var timer:Timer = new...
I'll give that a try. Thanks.
Alright, here's what I decided to do. I'm simply moving the enemies on and off screen when the levels change - by changing their x position. It's working good so far. I'm also setting their...
I'm making a game where you move your avatar around the screen, grab pickups, and avoid enemies. The avatar and enemies are movie clips containing animations. When you collide with an enemy, his...
Here's what I have now. It's working, though I'm not entirely sure why:
var collidingEdible_a:Boolean = false;
if (avatar_mc.hitTestPoint(edible_a.x, edible_a.y, false)==true) {
...
I'm new at this stuff so bear with me. When my avatar bug makes contact with another type of bug, he eats it. Both bugs are movie clips; when the avatar gets into the collision detect zone of the...
"Long story short though, since you're just getting into Flash, I don't know that I'd get caught up yet with complete optimization yet"
Sounds like a good idea...the idea of creating external...
That code works great, Creatify. Now, forgive the noob question, but how would I go about removing/reactivating the ENTER_FRAME? And why would it be ugly to have isColliding = false; to continue to...
Here's the situation: Your character - an ameoba-like thing (called "avatar" in the code) - has to avoid a crab-like thing (called "pincher" in the code). If they make contact, the pincher goes into...
|
|