Data member not found?

03-20-2002, 02:37 PM
okay... i got a problem. ive been debugging my game and i have it set up right anf all. but i run accross an error when its Rendering The Sprite

Sub RenderSprite()
Bitblt PB.hdc, tball.X, tball.Y, 0, 0, ballmsk.hdc, 0, 0, vbMergePaint
Bitblt PB.hdc, tball.X, tball.Y, 0, 0, ballmsk, 56, 58, vbSrcAnd
End Sub

The error is on the tball.x.. it highlights the .X in blue and the
Sub RenderSprite() in yellow with the arrow. anyway. then the message box comes up. Method or Data Member Not Found

Whats wrong? i looked at my options after the .whatever and the closest thing i could find was tball.CurrentX so i tried that with the other things and i got error. Cannot AutoRedraw.. whats wrong?

03-20-2002, 03:39 PM
What is the tball object? A picturebox?

How about zipping your code and posting it. Or if it's too big, make a smaller demo with the bug and zipping that.

03-20-2002, 04:37 PM
Many controls have .Left and .Top properties which are equivalent to X and Y respectively.


03-20-2002, 06:34 PM
thanks squirm forgot all about that :D .. ty

03-21-2002, 04:34 AM
hmm. nothing seems to work. Now wwhat?

03-21-2002, 04:35 AM
also. using the .top and .left or .x and .y... .top and .left work but now my error is that the picture cant auto redraw... should i set auto redraw to False and then in the code tell it to set to true or what?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum