Can someone help me, I don't really know what to do, I've been researching and researching yet I can't still fix this. Why is my pipes looks like this? I'm creating a flappy bird game but instead I used Santa then after the original 3 pipes, the other 3 pipes looks like this. It doesn't fully cover the length it should have. Please can someone tell me what to do to fix this. And how can I add some music effects for this game?
thank you!! I'll add the source code here.
As I understand it, the white parts are the wrong location of the pipes and they should cover the entire size of the Picturebox?
Or should the Picturebox sizes change according to the uploaded pictures?
The image of Santa has a black background. Is this how it should be?
I think the reason for this is, because there is "no proper gameloop yet".
The term "proper" involves, that you should *not* use any "Container-Objects with hWnds" (like a picBox),
to render "moving parts" - this almost always doesn't "end up well" (when your "moving parts" will increase over time).
Instead your Image-Resources (e.g. the Images which hold your "Pipes"), should be:
- freshly drawn, every time inside your (new to write) game-loop-routine (often called "ReDraw" or "RenderScene")
- via proper "Blitting-Commands" (the easiest way for a VB-Image would be via the PaintPicture-call)
A "Blit-Call" is also "just a single line"... quite similar to a "Move"-call on a PicBox or VB-Image-Ctl,
(basically using the same coords as your Move-call - for the Destination-Rectangle of the Blit-Op).