Author Topic: BulletManager Problems  (Read 1033 times)

hcwool

  • A Web Dev gone rogue
  • Member
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
BulletManager Problems
« on: Fri, Sep 21, 2012 »
Ok so im working really quickly with a couple of friends :)

ive been implementing the bullet(or fireball) part of the game ive been copying the tutorial here: http://www.photonstorm.com/archives/1164/flash-game-dev-tip-3-bullet-manager-part-1

were having problems with the super() line.

package  
{
import org.flixel.*;

public class FireballManager extends FlxGroup
{

public function FireballManager()
{
super(); [THIS LINE STUFFS UP]

//There are 40 bullets in our pool
for (var i:int = 0; i < 40; i++)
{
add(new Fireball);
}
}

public function fire(bx:int, by:int):void
{
if (getFirstAvailable())
{
Fireball(getFirstAvailable()).fire(bx, by);
}

}

}

}

Hey hey hey!

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: BulletManager Problems
« Reply #1 on: Fri, Sep 21, 2012 »
can you post the error message.
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart