Results 1 to 10 of 87

Thread: Space Shooter Game Editor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #34
    I could not attach to previous post for some reason , so here it is .

    I've edited a bit more , and added BackGround.OnMove
    Code:
    procedure TBackGround.Move(const MoveCount: Single);
    begin
      inherited;
      if StartDemo = true then
        begin
          WorldY:=WorldY+4;
        end;
    end;
    Using this it scrolls trough one screen of my map, but wont create new lines, wonder why? I tried playing with VisibleArea on a per sprite bases when creating the map but could not get it working properly
    Code:
    BackGround[z,x,y].VisibleArea := rect(-32,(y*32-32),640,(y*32)+480));
    The idea is that I'd create each sprite with a different Visible area... but for some reason, the above code does not do what I expected it to do...

    so for now I'm doing onmove using

    Y:=Y+4;

    seems smoth now on my laptop in smoothscreen, maybe I must do movement in onMove ?

    Greetings
    Robert
    Attached Files Attached Files
    Last edited by robert83; 26-02-2013 at 09:11 AM.

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
  •