Making A Character's Graphics?
Jun 5, 2009
As some of you may know, school is coming to close for summer recess, and final projects are coming up. My Computer Science teacher has asigned us an animation project. Basicly, all we have to do is make a game where we make a picturebox move using the arrow keys and it flips to face the direction its going in. This is a little easy for me, and i really want to go above and beyond and make my final project my best. So instead of little 2-D picture boxes moving choppily across the screen, can i push visual basic's limits and make a 3-D representation of a character in my game and use that with the arrow keys?
View 7 Replies
ADVERTISEMENT
Jun 13, 2009
I am trying to make a game where the character can jump, while stationary. How do I incorporate the constant of gravity into this situation?
View 1 Replies
May 23, 2010
I have a character that I made in graphics and when an enemy attacks the character, I want it to flicker, how would I do this?
View 2 Replies
Oct 22, 2011
This is actually not really a question about vb, but about how to make a code.I'm making a RPG game and I want to make my character have "normal" movement. The problem is actually when I just hold down one of my movement keys (a, s, d, w) my character will jump out of the screen because it's going to fast. here is my movement sub:
Private Sub frmMain_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
'MOVEMENT'
[code].....
View 2 Replies
Jul 4, 2009
I'm using the 2D graphics engine of Visual Basic. The graphics are fine for my purposes, however they erase when they move out of sight.I was looking at the System.Drawing.Graphics properties, and came across a save funtion, however that did not prevent the erasing.How do I prevent this from happening?
View 3 Replies
Jul 18, 2010
what I mean, every full-featured program has one. Tools > Options brings it up in Firefox. First off, I've looked for tutorials on making these and can't find them anywhere, does anybody have any links? Second, I'm making mine with a TreeView and panels. The problem is designing this thing with all of these overlapping panels! It's crazy. So, how do you easily make an options menu like Firefox where clicking on different tabs brings up different data options?
View 2 Replies
Jul 6, 2010
I'm making a custom class that mocks the System.Drawing.Rectangle class because the Rectangle class doesn't have a name property. I need a name property because I am adding all of my rectangles to a collection and I need a little more info stored than just their locale and size. So I changed the _onPaint event but nothing is working out when I run the program?
Public Class Rectanglar : Inherits UserControl
Public BackgroundColor As Color = Color.Blue
Public Sub New(ByVal name As String, ByVal XY As Point, ByVal Widthy As Integer, ByVal Heighty As Integer)
[code].....
View 5 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
Nov 11, 2009
I want to read a text file(.txt) character by character into a database.There are 28 characters on each line and I want to read the first 16 into a column in a database and the rest in another column in the database.
View 7 Replies
Aug 23, 2010
In my VB.NET application I compare words that are recorded using IPA, many of which have many diacritic marks. In one of the comparisons, I compare the words character by character. But when I iterate over the characters, the diacritic marks come out as separate characters (as I would expect since this is unicode)However, a u character is different than a u plus an accent for the purposes of this program and needs to be distinguished.
View 1 Replies
Sep 23, 2011
We have a GIS application that has some performance issues. It creates and sends an image to a web browser. We start with a Bing Maps imager, add complex polygons (complete with transparent fill), save the finished image as a PNG, and send it to the browser.
The idea has come up that we could possibly install a graphics card and use DirectX or OpenGL to improve performance. I believe this would be the case even though we ultimately generate an image instead of sending the data the the screen. I believe our processes could still make use of the API and the hardware acceleration it provides. Our process is not unlike what CGI film makers do to render individuals frames of a film, though we simply render a single image and send it, as opposed to the hundreds of thousands of images needed for a single CGI film.
So my question is: would a powerful graphics card and use of DirectDraw or OpenGL provide us a worthwhile performance boost? It can take us 20-30 seconds to render a more complex map. Which is a long time to wait on a web page...
View 10 Replies
Nov 19, 2010
Im working on a project that needs to print a report of one client.Everything went smooth untill i came across my multiline input text data.When i display it in the PrintPagePreview the text go's outside my page. Even when im printing it only the halve of my text is displayed. I googled and looked everywhere but i can't get a clear fix for it.
[Code]...
View 3 Replies
Jan 22, 2011
I used to program with Visual Basic 6, so I have alot of old programs that I'm updating, plus I'm learning the new VB2008 methods. I'm writing a program that replaces the old "BitBlit" function which is no longer supported by Visual Basic 2008. It involves three picture boxes, one holds the sprite bitmap, a second holds the mask (silhouette) of the sprite bitmap, and a third has a background image.
[Code]...
View 3 Replies
Aug 14, 2009
drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.
View 2 Replies
Jan 12, 2011
Ok, I want to create a class that will handle a special rectangle graphic.In my form, I want to have two of these special rectangles. So, basically, I need two instances of that class in my form, right?I manage to initialize two, alright. But, how exactly am I supposed tomanage drawing/graphics etc in a class, and the results to be displayed in my form?
View 13 Replies
Oct 29, 2008
Using graphics paths for designing...but am getting an error when trying to add a shape to : _shapelist.add(createshape())
It says : Value of type 'system.drawing.drawing2d.graphicspath' cannot be converted to '1-dimensional array of system.drawing.drawing2d.graphicspath'
View 2 Replies
Jul 15, 2011
I have a value I am pulling into a string that looks like this:
M'arta
I need to have it to translate the numeric value into an actual value so that the string looks like this:
M'arta
how to accomplish this in VB.NET? Here is the relevant line of code that returns this result:
Dim occupant as String = GridView1.Rows(e.RowIndex).Cells(2).Text
View 4 Replies
May 9, 2010
My form has a texbox where user enters an ID. IDmust be4 chracters in length andof the form: begins with either "E" or "e" and the next 3 chracters cannot be "all characters".
Example:
E102 - corect
e3ff - correct
[code].....
View 4 Replies
Nov 11, 2009
I want to read a text file(.txt) character by character into a database.There are 28 characters on each line and I want to read the first 16 into a column in a database and the rest in another column in the database.
View 17 Replies
Jan 15, 2012
I am trying to error check a piece of code
This is from my previous thread which 'Codeoder' help me on..
[URL]
I have a RTB which I import with a set of 7 or 9 didit numbers, 7 for Staff and 9 for Students. e.g. Staff numbers
0628189
0628191
0629991
[Code].....
View 8 Replies
Jun 13, 2010
I've been working with the substring command and after coding up all the things I needed it to do, I saw a post on here where the "For Each" statement was used basically to do the same thing.Lets say we just want to take a string apart one character at a time and add each character to a label. Which would be more efficient?I made a cheap example to show ...
Code:
ABinary = "0110 1100 0001 1011"
For x = 0 To Len(ABinary) - 1
[code].....
View 15 Replies
May 16, 2012
I'm a huge music person (got my own lil record thing going) but I'm wanting to design a program that would make music in my way. I have a decent amount of background knowlege of Visual Basic and Java I'm just wondering how could I execute this whole project. The Project is making a MPC Sampler. MPC is a drum machine; a machine with buttons that once you press it that it will play a sound from a drum (ex: snare, kick, tom, ect.) . So I would want to make some pads on my program that each have their own sound. Total of 16 pads. Which the design wouldn't be hard to make nor would the functionality of it having the play back sound (in my opinoin it wouldn't be hard atleast). But the thing is I wanna map out these pads to number keys on the number pad or keyboard. I'm not so sure how to do that. But that's all the easy stuff...
Also finding information is making a sound directory. What I mean by this is that I want to make a User Interface that will open up a file directory of sounds and the user can select what "kick" or "snare" sound he may want for the kick or snare pad. I don't know how to do that or even know what to search; neverless I don't know if this whole project idea is a good idea for Visual Basic or another programing language.
Also LATER ON I am wanting to add a record and export function that alows users to..well...record and export their beat or instrumental ha. That doesn't seem too too complex (mainly due to the fact that all it needs to do is record the users key strokes and then show them and play the sounds, but obviously it would get more complex than that.)
Here is an image of one of many MPCs but one with a directory - [URL]
View 5 Replies
Sep 27, 2010
[code]...
ok, i know the code is a little rough, but it should be good to give you an idea of what im trying to do, if not i will still explain.simply draw 2 lines one from left to right, another from top to bottom, intersecting through the tip of the mouse.ok, theres no problem there the lines draw perfectally the way i want them.... BUT! now heres the issue im having.i cant get rid the previous lines.i did a bit of good old "Google'ing" and ran across a few links that all pointed me to the ReDrawWindow API, so i tried (as you can see in the above code) but i just cant seem to get it worked out.
View 5 Replies
Jan 19, 2011
So I decided to make my famous tile selector project, but instead of drawing in a form's graphics, do it inside a tabpage.Well, I managed to get it working, but it seems to... flicker.Normally, setting the form's DoubleBuffered property to True would help a lot there, but apparently, the tabpage has no such property.
When I invalidate the tabpage, I draw two images and fill one rectangle.Following past advice, those two images were created before, just once, and are stored in a variable so I don't create them every time I invalidate the tabpage.
View 1 Replies
Aug 1, 2010
Ok I have this: This makes a sub called 'graphicspaint' then writes "demo version" to a picturebox1
Code:
Imports System.Drawing
Imports System.Windows.Forms
[code]......
View 8 Replies
Dec 5, 2011
i whant do my own shadow effect. i can do the shandow. but how can i plus 2 bitmap images(1 above the other)?
View 15 Replies