View Single Post
  #6  
Old 08-18-2008, 06:03 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Perhaps have a different way of creating projectiles if people think shoot() is getting too large?

proj = player.level.projectile;
proj.ani = "iceprojectile";
proj.aniparams = {0, 0, 1, 0.5};
proj.dir = 3;
proj.x = player.x + 1;
proj.y = player.y + 1;
proj.z = 0;
proj.variable = value; //etc...
proj.shoot();

Sort of like how the particle emitter is working.
__________________
Reply With Quote