Results 1 to 3 of 3

Thread: Lag with sprites

  1. #1

    Default Lag with sprites

    Hi again.
    I have problems with sprite movement. I move them with time_delta_ms and i have a little lag in movement. How i can fix it and make sprite movement more smooth?
    And the second question - how i can completley remove sprite from screen?

  2. #2
    Lesser Knight
    Join Date
    Apr 2011
    Location
    Germany
    Posts
    32

    Default

    Code ? then can we help you better :>

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Quote Originally Posted by ringozkun View Post
    I have problems with sprite movement. I move them with time_delta_ms and i have a little lag in movement. How i can fix it and make sprite movement more smooth?
    I assume that you read http://clanlib.org/wiki/MainDocs:Timing

    Remember if your screen resolution is not high, and the sprite is moving at 1.25 pixels per frame, it can appear to not be smooth

    1.25 pixels --> 1,2,3, 5, 6,7,8, 10, 11,12,13, 15 ... i.e. skipping a pixel every 4th frame

    Quote Originally Posted by ringozkun View Post
    And the second question - how i can completley remove sprite from screen?
    Do not call sprite.draw()

Similar Threads

  1. Z-ordering of sprites
    By Abi79 in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 03-29-2011, 07:51 PM
  2. Sprites
    By fdaniels in forum Novashell Game Creation System
    Replies: 2
    Last Post: 10-01-2009, 07:52 AM
  3. Sprites and more...
    By Ledorax in forum Novashell Game Creation System
    Replies: 8
    Last Post: 09-28-2009, 04:47 PM
  4. Sprites
    By lixopmstp in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 01-21-2007, 02:36 AM
  5. sprites
    By seyah3 in forum Dink Smallwood HD
    Replies: 0
    Last Post: 02-03-2006, 03:05 AM

Bookmarks

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
  •