Guys.. I need help in my RPG game project.. I used visual basic 2008, windows form applications. I used panel and its background is the map, and I used picture box as the character and with transparent gif pictures in every keyevents, I already can move the picturebox with keyevents. But the problem is, whenever I move the picturebox,I can see the box of picturebox even it is transparent. I want to learn bitblt or other things that can smooth it, I need a tutorial pls.:'(
rinoa0424
0
Newbie Poster
Recommended Answers
Jump to PostTo do what you want you are probably better drawing directly to the Panel from the Paint event.
(You might get even smoother graphics if you use a Picturebox instead as is does not have to deal with possible child controls when painting)
Here is a quick example of how …
Jump to PostOK, I changed my sample to use a PictureBox to hold the character image and location.
This way you can use the Bounds property of the PictureBox as you did before.Public Class Form1 Dim myCharacter As PictureBox ' image of moving character Sub New() InitializeComponent() ' …
All 5 Replies
nick.crane
342
Veteran Poster
rinoa0424
0
Newbie Poster
nick.crane
342
Veteran Poster
rinoa0424
0
Newbie Poster
nick.crane
342
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.