Data member not found?

trevland06
03-20-2002, 03: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?

BillSoo
03-20-2002, 04: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.

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

:)

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

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

trevland06
03-21-2002, 05: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