Make My Character Shoot Bullets?
Nov 18, 2009
I have my character moving across the screen, I have enemies that randomly came at the character, and I have it so when the enemy collides with the character you loose a life.
But how do I have the character shoot bullets.
I know how to do the keypress, and make the bullets move with a timer. But I don't know how I can create an infinite amount of bullets that can fire.
View 4 Replies
ADVERTISEMENT
Apr 13, 2012
I am currently making a game like the worlds hardest game but with a difference. I have made 9 levels so far and am doing the boss level and i cant figure out how to make the boss shoot "bullets".there are two types of bullets the boss can shoot bullet1 - moves in a constant speed to the left after being shot bullet2 - moves in a constant speed to the left after being shot and follows the player on the y-axis The boss only follows the player on the y-axis(I have done this)The boss only shoots bullet1 until his health is below 50 then he increases the rate at which he shoots and randomly shoots bullets between bullet1 and bullet2The only way to win this game is to collect coins which randomly appears in the map, after you get the coin you decrease the bosses health by 5 (I have done this)If the player touches bullet or the boss then the level restarts (I have done this)
View 5 Replies
May 26, 2011
up to now I've have been running my bullets on automatic fire, through 4 separate timers.My Nxt major task is to make my space bar shoot bullets. I have tried attempting to code the spacebar, for the first bullet. I was thinking that when the spacebar is pressed it turns on a timer, thus the bullet is fired. Then when the bullet hits the top of the screen or an alien the timer is turned off and bullet location is reset. Now the bullet1 no longer fires.I find the logic complicated but it should work.
my variables:
Code:
Public BulletMovement As System.Drawing.Point
[code].....
View 7 Replies
Mar 22, 2010
How can I make use of Bullets in Labels and Textboxes? I want the user to enter text into a Textbox and after he/she is finished hit the Enter key, then a Label must display a Bullet followed by the text entered in the Textbox. Hendri Bissolati (Novice programmer)
View 3 Replies
Feb 1, 2010
I am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.
My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.
Below is an image to illistrate my problem
I have tried adding transparent background, transparant key etc
View 2 Replies
Jun 9, 2011
how to make 45 angle shoot or 45 angle movement of bullet in vb.net
View 1 Replies
Aug 11, 2010
i am having a tad of a problem when it comes to popups and new windows. I am currently opening new windows in my webbrowser using the href command and this has been working fine for about 40% of websites but I am running into a few problems as the other 60% of popups are still opening in Internet Explorer windows.I am currently using the
On Error Resume Next
Dim myElement As HtmlElement = CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Document.ActiveElement
Dim target As String = myElement.GetAttribute("href")[code]....
I am having problems loading login forms (asking for username and password to connect to the internet) and any window that uses javascript commands in the href to load the popups.For example:If anyone has encountered such a problem before and knows how to fix it it would be great if you could post up some code or a link to a walk through so I can see how its done.
View 2 Replies
Oct 12, 2011
Text needs to be copied from 1 wordprocessing document to another wordprocessing document. The source document is not always accessible when inserting the text in the target part. The text is serialized and retrieved later on.
They way I currently do this is by copying the paragraphs elements and then appending them into the other document. This works fine unless bullets are involved. The bullets are not copied from the source to the target document.[code]...
I know that bullets are stored in the NumberingDefinitionsPart of the MainDocument part but my problem is how do I know which AbstractNum and NumberingInstance to insert in this NumberingDefinitionsPart?
View 1 Replies
Feb 16, 2011
This is my assignment for tonight. If anyone can enlighten me as to why it doesn't work. I
know I haven't finished the timer, I trying to get results in the labels.[code...]
View 3 Replies
Mar 11, 2008
i have a problem with my graduation project, i need to take a picture shoot automatically based on a signal from the parallel port, and save the picture on the harddisk , so the MATLAB will read this picture to process it.
[Code]...
View 2 Replies
Mar 6, 2008
So for my final project in my Visual Basic.net class I am making a airplane game quite similar to Space Invaders.I think I have a good idea as to how to get the bullet from the planes to shoot. However, I was wondering where exactly the bullet picture box is going to be placed. I don't understand it. Is it going to be under the picture box of the plane or what?
View 17 Replies
Jun 18, 2009
While using SelectionBullets in a RichtextBox I am experiencing some issues with FontColor and the SelectionBullets Color. For example I am selecting the entire text in the RTB and set it to FontColor Yellow - the font color itself is fine; the problem: some Bullets turn Yellow, some stay black. Would there be a way to have those Bullets permanently colored in black?
View 1 Replies
Nov 26, 2009
I am creating a game for my class, it is above the level that I know a bit, but I have learned a lot from creating it.
This is how it it works:
-Every time a timer ticks a picturebox is created and displayed on the form, the picturebox is added to a collection. These enemies then move down the form
-My character fires bullets, and when they hit the enemy the enemy and the bullet gets disabled and removed, but not from the collection
-I have another timer that when it ticks, a random number is generated between 1, and the enemy collection count, so that a enemy missile can randomly come out of an enemy
This all works, but after the enemies are hit and removed from view, bullets still get generated from spots where the enemies once where, so to me that means that the destroyed enemies still remain in the collection.
If I try to remove the picture box from the collection I get an error.
View 3 Replies
Nov 24, 2009
I am creating a game for my class, it is above the level that I know a bit, but I have learned a lot from creating it.My problem is that when my user (doctor) sends out a bullet and it hits the enemy (the enemies are generated into a collection), the picturebox is disabled and no longer visible, but that picturebox spot in the collection for all the enemies is still there.
So when I generate a bullet and shot it from a random enemy in the enmCollection, sometimes that random enemy is one that is already been killed.I tried using enmCollection.Remove(..) whenever the collision with the enemy and a bullet occurs, but it gives me an overflow error or another error.
I've been trying for a day now.Everything in the game works correctly except for this.
[Code]...
View 2 Replies
Apr 22, 2011
I am making a 2D game that has a player (me) that shoots bullets (pictureboxes) and kills other enemies. The problem is that when there are many bullets on the screen it gets very slow because it has to move every picturebox.
View 11 Replies
Mar 29, 2010
Well Basically I'm just testing the grounds and programming a very basic calculator in VB .NET Express 2008.[code]I just want LOL to appear in the mathematical result
View 6 Replies
Jun 8, 2011
I am trying to make a five digit string, it needs to be 5 digits long basically it cant be less then 10000 and more then 99999, but when I run the code, all the label says is "this is a five digit code" from the time I start putting in numbers to even if I got a whole lot of numbers are in it, it remands the same label, what could be wrong or am I doing this wrong
Dim myDouble As String
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If myDouble >= 10000 Or myDouble <= 99999 Then
lblmessage.Text = "this is a five digit code"
Else
lblmessage.Text = "Not a 5 digit code, please renter a new one"
End If
End Sub
For the three character sting, I have
ON:Motor is online and running
OFF:Motor is online, but not running
MNT:Motor is undergoing maintenance and cleaning
NA:Motor is not available
I dont know how to start this, do I make a specific thing saying that these are the only ones you can use and if you entered something else then a text box saying incorrect or something like that?
View 8 Replies
Jun 6, 2011
My character moves with the keyboard arrows but he keeps facing the screen, my question is:How can i make the character change direction (by using different sprite positions), like when I press the right keyboard arrow my character faces right and when I walk right my character's legs move?
View 1 Replies
Feb 19, 2011
i need some guidence regarding password character.if in a text box we give * as the password character then it shows * irrespective of what we type..thats fine..i needed to develop something diffrent
View 2 Replies
Dec 1, 2010
How do I make a regex that can detect a certain character string that is either all by its self in a line, or separated by white space.
If I have the line:
"ot"
Or the line
"sdf gdfg dv ewrsef fvdf ot sdfsd sdot"
I want to be able to detect the 'ot', except for the one that is 'sdot'
View 5 Replies
Jul 26, 2009
how make comment maker character for whole paragraph
View 7 Replies
Jul 27, 2009
I'm trying to make a simple character converter i.e. (A converts to O) or (C converts to V) I need to make defined parameters for the entire alphabet.I have two text boxes set up and a command button. I'm trying to make it so the text inputted into the first textbox is converted (using the defined parameters) Into the second textbox with a click of the button.
View 5 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
May 25, 2010
I am trying to make bounds for a character that can jump. I have made the character graphic into a rectangle and I have a square block in the game that the character must jump onto and I have set that as a rectangle.
How would I make it so when the character jumps onto the square block, he stays up there and then when he jumps down, and touches the ground, he stays on the ground. My current jump code is standardized; it does not detect changes in the Y-coordinate. What I have done in the jump for the character is I have made it so the Y-coordinate is increased by a certain amount and decreased by the same amount so the difference is equal to 0.
For example:
Character.LocationY += 8
Character.Location -= 8
View 2 Replies
Apr 5, 2012
I want code for RichTextBox when I write text it make space automatically before and after some character like Spacial symbol example , I write in RichTextBox this statement :
array()={1,2,3,4}
when I press ENTER this statement change to :
array ( ) = { 1,2,3,4 }
make space between spacial symbol and other character automatically
How I do that In VB.NET 2008?
View 9 Replies
Feb 12, 2009
I would like to make an application whereby the user can select a color, enter a character into a textbox, select another color, enter another character and so on and so on...This multi colored text that has been entered into the textbox by the user must then be shown on a label. I cant get the damn characters in the label different colors They are all for example, either red or all blue.
View 2 Replies
Jul 29, 2011
Dim hex = "41"
Dim text As New System.Text.StringBuilder
For i As Integer = 0 To hex.Length - 2 Step 2
text.Append(Chr(Convert.ToByte(hex.Substring(i, 2), 16)))
[code].....
but yet this fails.. (the output isn't itself in a new line) what's the explanation for that?From what I know, doesn't System.Diagnostics.Debug.Writeline does something which looks like this:
System.Diagnostics.Debug.Write(input)
System.Diagnostics.Debug.Write("
")
so regardless of my input it should always have a newline char even if there is a terminating 00 char in my input?
View 2 Replies
Aug 2, 2010
I understand that within a rich field text box you can search for a string and then format that string, but I am looking to change the formating of a certain position in a string regardless of what character is at that position.Can this be done in VB 2008?
View 3 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