Results 1 to 10 of 87

Thread: Space Shooter Game Editor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #35
    (Sorry for some reason I cannot get the file upload to show when editing my post)

    Anyway I think I did it...

    Code:
    procedure TBackGround.Move(const MoveCount: Single);
    begin
      inherited;
      if StartDemo = true then
        begin
          if SpriteEngine.WorldY = 0 then
            SpriteEngine.WorldY:=(Map.MapLength*32)-480;
          SpriteEngine.WorldY:=SpriteEngine.WorldY-0.0010;
        end;
    end;
    Note I had to move SpriteEngine from Private to Public...

    The strangest thing is , if it's running non fullscreen I get 27FPS probably the visible area not kicking in, but if I run fullscreen it runs at full 60 fps smooth , on this laptop with integrated gpu...I think that is a big word... I set the visible area for each sprite, I did set it on purpose to be less then screen size to see what happens and if it works.

    So this means I have to make the Editor itself fullscreen to ? (or leave editor as is, since it's easier to work with components available, and do the game in fullscreen later....)

    Update : if Form size is same as asphyre device size, it works in non full screen mode as well at same speed.
    Question : why do I have to use such a low value to move the WorldY now ? 0.0010 , the Speed for Timer is 15 only...

    Greetings
    Robert
    Attached Files Attached Files
    Last edited by robert83; 26-02-2013 at 09:39 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
  •