Sprite problems

Discussion in 'Questions (Windows Mobile)' started by willisgt, Feb 28, 2008.

  1. willisgt

    willisgt Active Member Licensed User

    I've been toying with the new Sprite library (way cool, Erel!) and having a lot of fun with it - but I'm running into two problems.

    1.) When my sprite hits the left side of the window, collisionEdge gets raised and gw.Edge contains a value of 4 (southwest, according to the help). I'm expecting gw.Edge to contain a value of 5 (west).

    2.) When my sprite hits the edge, I 'pop' it back to the center of the window. This leaves a ghost sprite at the window edge. I've tried setting isActive, the lifetime counter, etc., before and after the move, with no luck. I'm trying to avoid disposing of the sprite and recreating it at the new location.

    Ideas?


    Gary
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. willisgt

    willisgt Active Member Licensed User

    Thanks, Erel. I haven't had time to try the new library, but I appreciate the quick response.

    Gary
     
Loading...