This skin was created by Tim of the IF Skin Zone
Powered by counter.bloke.com

"Like the new change? Due to the shrinking of Orius, the forum has become a little closer to newbie animations.................................................Need help? Post in the "Assistance" section and someone is bound to help you.........................Neophyte: Chat Room Meetings are now held on Sundays between 9:00 p.m. to 12:00 a.m. Greenwich Mean Time. East Coast: 4:00-7:00 p.m. EST, and Pacific: 12:00-3:00 p.m. Use MSN for all meetings until further notice....................Newbie Animations heads three projects: Nick the Newbie, Jumping Jazz, and A Way of Life; inquire within for details!....................Finally, and this is important: if you think you're bored, start a project, or chat with people you know--artists, etc.--and get them on board!.............................................."
  Image hosted by Photobucket.comImage hosted by Photobucket.comImage hosted by Photobucket.com

 Weeeeird stuff going on
MurderMunkey
Posted: Feb 28 2006, 09:19 PM
Image hosted by Photobucket.com


New Member
*

Group: Member (Metropolis Studios)
Posts: 23
Member No.: 57
Joined: 22-January 06



Okay, I'm working on a game (different than my other one.) Here's the current build http://img151.imageshack.us/my.php?image=tank2ar.swf

The problem I have is that when the bullet you fire hits the enemy tank, it all disappears from the screen. I honestly haven't a clue on what causes this; totally stumped. The faintest inkling of a hint of a clue would be appreciated and is desperately needed! upset.gif

CODE

onMouseDown = function () {
if (turret._currentFrame == 1) {
 fireCannon();
}
};

fireCannon = function () {
this.turret.play();
var nm = "bullet"+sCount;
bullets.attachMovie("CannonShot", nm, sCount);
bullets[nm]._x = turret._x+Math.cos(turret.ang)*60;
bullets[nm]._y = turret._y+Math.sin(turret.ang)*60;
bullets[nm].dx = Math.cos(turret.ang)*72;
bullets[nm].dy = Math.sin(turret.ang)*72;
bullets[nm].onEnterFrame = function() {
 this._x += this.dx;
 this._y += this.dy;
 var enemy = "enemy"+eCount;
 if (this.hitTest(enemies[enemy])) {
  this.removeMovieClip();
  enemies[enemy].play();
 }
};
sCount++;
};
createEnemy = function (type, x, y) {
var nm = "enemy"+eCount;
enemies.attachMovie(type, nm, eCount);
enemies[nm]._x = x;
enemies[nm]._y = y;
enemies[nm].dy = Math.random()*3+2;
enemies[nm].dx = 0;
enemies[nm].onEnterFrame = function() {
 this._x += this.dx;
 this._y += this.dy;
 var bullet = "bullet"+sCount;
 if (bullets[bullet].hitTest(this)) {
  this.play();
 }
};
};


--------------------
I may not talk much, but at least I are more smarter than you!
Image hosted by Photobucket.comImage hosted by Photobucket.com
Image hosted by Photobucket.com
superschaap
Posted: Mar 21 2006, 02:23 PM
Image hosted by Photobucket.com


Normal Member
*

Group: Member (Metropolis Studios)
Posts: 58
Member No.: 35
Joined: 7-November 05



not a hundred percent shure but it seems theres a messup in your X,Y changes. your tank just gets positioned somewhere off screen. try using debug mode and put a stop in ront of all coordinate changes then you can see which one messes up
Image hosted by Photobucket.comImage hosted by Photobucket.com
Image hosted by Photobucket.com
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


Image hosted by Photobucket.com Image hosted by Photobucket.comImage hosted by Photobucket.comImage hosted by Photobucket.com



Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.4215 seconds | Archive