View Single Post
  #1 (permalink)  
Old 03-13-2008, 12:43 AM
Leginus Leginus is offline
Junior Member
 
Join Date: Dec 2007
Posts: 27
Default Sprite Library question

I have a stationary sprite in the middle of the screen and other sprites falling from the top of the screen to the bottom(using sprite direction and velocity). When a sprite collides with the sprite in the middle of the screen I try to move the colliding sprite to the right until the collision is over. However, the collision routine moves both the colliding sprite and the sprite in the middle when using this code

Code:
Sub gw_Collision
    Spr1.Value = gw.Sprite1 
    spr2.Value = gw.Sprite2
    spr2.x=spr2.x+1
End Sub
Is this a bug with the sprite library, e.g. that is cannot differentiate between spr1.x and spr2.x, or am I missing the point somewhere

thanks
Leginus
Reply With Quote