this may be a bit more of a general question than one especially pertaining to Andorra2d, but I need help.
doesn't work. as far as I can tell, the Tbullet (A TimageSpriteEx deriviative) is being created as specified, but is not added to the TObjectList.
If anyone can give me a hand, I would be much obliged.
oops, forgot to add the code:
procedure MakeBullet(inputX, InputY, InputAngle : double; Info: byte);
var MyBullet : Tbullet;
MyBullet := Tbullet.Create(GameSpriteEngine);
with Mybullet do
Image := GameImageList.Find('bullet');
MyBullet.X := InputX;
MyBullet.Y := InputY;
MyBullet.Angle := InputAngle;
MyBullet.Finfo := Info;
MyBullet.FHealth := 10;
your sprite is dead(freed)
Log in to post a comment.