Thread: Sprite problems
View Single Post
  #1 (permalink)  
Old 02-28-2008, 03:32 PM
willisgt's Avatar
willisgt willisgt is offline
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default Sprite problems

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
__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote