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
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