Results 1 to 2 of 2

Thread: Need help with actors progress. HELP...!

  1. #1

    Need help with actors progress. HELP...!

    i workin on game with my friend and i have encountered a serious problem:

    Monsters in my game are TGLActor based types:
    [pascal]
    Type TMonster = class(TGLActor)
    public
    Nametring;
    Strength: 1..25;
    Dexterity: 1..25;
    Build: 1..25;
    Inteligence: 1..25;
    Wisdom: 1..25;
    Charisma: 1..25;
    LifeEnergy: integer;
    Rasatring;
    KP:integer;
    Level:Cardinal;
    color:tcolor;
    target:TGLSceneObject;
    procedure DoProgress(const progressTime : TProgressTimes); override;
    private
    procedure DoMove; [/pascal]

    procedure onprogress and move look smth like it:

    [pascal]
    procedure Tmonster.DoProgress(const progressTime : TProgressTimes);
    begin
    inherited Doprogress(progressTime);
    rollangle:= obracanie(self,target);
    domove;
    with position do
    z:=0;
    end;

    procedure tmonster.DoMove;
    begin
    if sqrdistanceto(target) > 0.6 then
    lift(0.005);
    end;
    [/pascal]
    and here is my problem:
    when i create for example 50 monster Glcadencer is working slower and procedure onprogress is calling 'slower' too so monster are walking very very slow .
    dont you know how to call procedure domove alone. i want it to call itself.

    pleas help
    thanks mathew
    "With great power comes great responsibility"

  2. #2

    problem solved

    ok i have found how to fix it
    anyway
    thanks
    "With great power comes great responsibility"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •