Get The Image Transparency Of The Character Sprite To Work
Jul 3, 2011
I can't seem to find a way to get the Transparency of the character sprite to work. It always seems to take the background image of the form no matter how I tweak it.
View 15 Replies
ADVERTISEMENT
Jun 29, 2011
I've been trying to figure out how to create transparency in a sprite, i.e. with the use of a mask. Problem is, every tutorial I could find was either completely irrelevant or for freaking Visual Basic 1858.
View 1 Replies
May 7, 2010
I need some advice on a game I created. The game bounces a Sprite around a Panel and the user clicks the sprite to catch the sprite What I want to do is introduce a dificulty level easy medium and hard the level puts more sprites in the panel, the higher the dificulty level example
[Code]...
View 2 Replies
Feb 17, 2010
I'm using a class which lets me retrieve the a System.Drawing.Image by specifying a Sprite ID... I'm wondeirng, after I get the image, how do I draw it onto the form? Heres what I got so far
Dim img As Image = Util.SpriteReader.GetSpriteImage(3367)
View 4 Replies
Feb 2, 2012
I am using vb.net by the way. From what I understand, Xna is not usable in visual Basic. Therefore, in order to create my characters, I defined a sprite class. Now my question is.... (I am drawing everything using a timer on the form btw by the process of invalidation.)... how do I use time to cycle through the images in an image array while the instance has no focus, and whilst the class inherits the "Control" class? Basically, how do i get these instances to act without user input? I want a character to eventually respond to user input, but I also need npcs that do not need any input in order to move themselves. Also, I need this in such a way that each instance's processes do NOT interfere with the processes of others. So that whatever timing I use does not also stall the whole window/form.
View 2 Replies
Oct 14, 2009
Ive been programming in VB6 for years, i figured its time for an upgrade. Here's what im doing, and what the problem is:
Im loading a bunch of pictures on top of one image. They are all PNG files, and some of the images have transparent edges, and some semi-transparency within the image itself.
So basically, i need to be able to load these images on top of the other images, and still maintain the transparency.
Is this possible in VB08? This is one of the main reasons i moved to 08 from vb6, more things possible including multithreading.
View 11 Replies
Nov 14, 2009
I can't get the transparency key to work with the mdi child, I really need it to work as well, but I just can get it to work properly.
View 2 Replies
Jan 24, 2011
I have a form, which has the background color set to the transparency key color. On the form there is a picturebox with transparent backcolor and a picture that is semi transparent.Unfortunately the transparency doesn�t work. The form shows with a background, but not the background color I chose, but the gray control color. Nothing is transparent.The EXACT same thing works with another form.
View 4 Replies
Jun 26, 2011
I did a test using AxShockwaveFlash1, and while I set the WMode to Transparent, and tested the form, the transparency didn't work! How am I supposed to make it transparent?
View 1 Replies
Jul 20, 2009
how you can get image transparency to come through in Visual Basic? Because if you try to put an image with some transparent sections on it on a form, the transparency turns into the form background colour (Though you could change the background image to whatever you want displayed under the image, but that's not the point) and basically I can't find any way to do irregular transparencies.
Alright, that's not very simple. I'll try to give an example:
You have an animated GIF of...say...fireworks. And it has a transparent background. Now say you have a few labels with text in them. When you draw the picturebox over the labels, the text in the labels is covered by the background of the fireworks, even though it's transparent. You can't see the labels. You want to see the fireworks exploding over the text
I can't see any way of getting around this, other than doing it in another program and putting the text and fireworks into one PictureBox. but it would be so convenient if it could work in Visual Basic, because you can control the text the in the labels and keep the animated "fireworks" exploding at the same time without using multiple animated images.
View 6 Replies
Oct 29, 2009
i know how to make a picturebox have a transparent image within it, and i know how to make forms transparent, but what i cant seem to figure out is how to add an image which has transparent parts to a completely transparent form and have it still look nice. you know when you find images which look really good by them selves, but then look really bad when moved to a different background cause they still have the white border (or any other colour border). is there ANY way which i can accomplish removing this border? its almost like the alpha channel that removes the ugly border, when putting the image on the form, is forgotten about and the colour of the forms background fills in the gap..
View 3 Replies
Mar 7, 2012
I've been playing around with Windows 7 taskbar thumbnail previews. I've noticed that some Microsoft applications are able to set thumbnail images which have transparency in background. I've been trying all out and not been able to achieve this.
I've set a picturebox control having PNG with transparency as thumbnail preview, doesnt work. I tried creating a new bitmap and loading from Icon file having transparency and setting it as preview but still doesn't work. It keeps showing the background color of the form window.
This is what Microsoft apps are able to acheive:
[URL]
View 4 Replies
Mar 31, 2012
I Use the following code to detect if a sprite should be going up or down and the response
If (pos.Y + 100) >= Sprite.BottomY Then
Going_up = True
pos.Y = Sprite.BottomY - 130
End If
[Code]...
but it's pretty terrible. It only works when the sprite starts at the top, and when I want to change the BottomY and TopY, it just starts glitching. What is a better to detect if the sprite should be going up or down?
View 2 Replies
Mar 31, 2012
my character is able to move right and left i want to be able to make the character collide with objects for objects i used picturebox option i hope thats right to use my problem is how to make a sprite have collision with a picturebox here is how i set up my sprite just in case u need the info because ive seen other sprite codes differently
ElseIf _ObjectState = ObjectStates.RunningRight Then
Select Case _SpriteAnimation
Case 1
[Code].....
View 4 Replies
Apr 9, 2012
I am creating a 2D RPG game similar to the pokemon interface. After solving my problem with walls, I came across another problem. If I make the panel show the whole map, it would be too small. Thus, I tried to increased the size to 1200,1200, but it wouldn't let me because my screen is smaller than that. Then I thought about it and realized that most games limit the sight of the map to the characters surroundings.
[Code]...
View 2 Replies
Apr 27, 2012
I have been searching the internet for a few days now, looking for ways to solve my problem, but I can't find anything. What I am trying to do is make my sprite walk. The way I did this was I made multiple GIF's with my characters different movements, but when I try to switch which ones are showing by releasing an arrow key, it does not do anything. Does anyone have a solution for this? My code so far is below, but it only lets me switch to the running GIF and not to the standing one.
[Code]...
View 2 Replies
Sep 6, 2011
I'm looking for on how to click on a sprite made button and have it change to a new menu in the same form?
View 2 Replies
Aug 27, 2009
I made a game in VB 08 and I have sprites and a background but I need to know how to make the background of the sprites transparent.I'd like to note that I'm using a picture box for my sprite, and the game is animated (I read that those things are relevant).I've read a lot on bitblting but I don't understand it, and when I found a helpful article it mentioned to use the .hdc. This article though was made before the introduction of GDI+ which now makes it harder to obtain said .hdc.
View 11 Replies
Feb 22, 2010
how can i get a full code or full information how to work with image and pixels i want to work with image by pixels as integer number not as color?
View 5 Replies
Feb 28, 2005
it's possible to work with PCX image files in VB.Net? I know it's possible with most other formats like bmp and jpg.
View 10 Replies
Nov 18, 2008
is ther any way to make my screen follow my sprite? I want the visable area of my game to change when my sprite moves past this X value 284 but i can not figure it out ill post my VB Express code below
Code:
Public Class Form1
Dim Y As Integer
[code].....
View 2 Replies
Aug 16, 2009
picturebox1.image = system.image.drawing.fromfile(x) x is the location where the webcam store the current image.if the code above would work what is x ?
View 14 Replies
Aug 7, 2010
i had this code to update a twitter profile immage and suddenly it doesnt work anymore,, i have reacked my brains trying to change it and fix it and to no avail,, nada,, every google search you can think of,, im at the end of my wits,, a full week 24/7 no sleep and now i give up. this is the code that use to work:
[Code]...
View 1 Replies
Feb 19, 2009
i have a table layout panel with a background image. in the table there is some panels with transparent back colours. the image shows up in vb designer but when i execute it, it is invisible.
View 6 Replies
May 5, 2012
I am currently making a small flood runner like game, I completed most of it, but I can't seem to get the jump action right. I got it to jump straight up and back down again, but it doesn't work when I use a left/right arrow key with it to perform a left/right jump. The sprite goes straight up if I only press space.What I want- The sprites goes up and right or left when I press space while holding right or left.
View 2 Replies
Aug 25, 2011
How do I write an expression to calculate all characters of each row by my own defined value to each character = all the A and B and C and etc. will be as 2 and all I and J and whatever ... will be 1 so I need an end result of the total.
View 3 Replies
Jul 10, 2009
I am working on a sub that essentially needs to open a text file, and replace all instances of a certain character with a unicode character. I'm trying to do this by reading the original text file byte by byte, converting it to a character, and then either adding that character to a memory stream or writing the unicode character to the memory stream. Then I'm saving the memory stream to the original file.
[Code]...
View 3 Replies
Dec 12, 2010
[Code]...
For each character of this string I want a new character out of the string and then remove the character from the list of characters that still maybe used for other characters. It may not get the same character, you could basically just call this encryption, but it's not what I am making. I don't want to waste my time doing this one hour while VB can do this for me in <1 second.
View 12 Replies
Feb 17, 2011
I am writing a hangman type game and I am displaying the word to the user in a label as all *'s, but I cannot figure out how to have just one of the *'s changed in the label to the correct letter when the user inputs the correct letter into the text box and clicks the check letter button.Everything else in the program works perfectly, except for this part.[code]When I use the .Replace it changes all of the *'s to the correct selected letter.
View 2 Replies
Feb 16, 2012
the coding is to 'Get input string and put its character into List, and replace the character with other.'but having problem putting each character into List and also replacing it,[code]
View 2 Replies