Damot
09-03-2004, 05:30 PM
For example....
--------------------
type
TPlayer = class(TImageSprite);
.......
var
MainPlayer : Tplayer;
....
procedure init;
begin
MainPlayer:=tplayer.create(form1.DXSpriteEngine.en gine); ?????
end;
-------------------
I can't seem to use "MainPlayer.tplayer.create(self)", so what should it be? It works as above, but wondered if it was correct???
--------------------
type
TPlayer = class(TImageSprite);
.......
var
MainPlayer : Tplayer;
....
procedure init;
begin
MainPlayer:=tplayer.create(form1.DXSpriteEngine.en gine); ?????
end;
-------------------
I can't seem to use "MainPlayer.tplayer.create(self)", so what should it be? It works as above, but wondered if it was correct???