VS 2008 Create Projectile For Cannon Game?

Apr 8, 2011

If I have a starting X/Y position and enter an angle and power, I want to determine the X/Y positions for a cannon to follow. I have seen many sites on this but no straight code to use. Anyone have an example of this? I just want the X/Y posiitons in small steps - not far apart from each other.

View 6 Replies


ADVERTISEMENT

Projectile Motion - Make A Game Similar To The Impossible Game?

May 19, 2011

I'm doing a project for school. I'm trying to make a game similar to the Impossible game. I need a square (picturebox) to jump but I want gravity to effect it.

View 1 Replies

Game Programming :: Making A Shell/bullet Spawn At The Tip Of The Cannon?

Nov 11, 2011

when a tank cannon shoots, what I want is make the shell come out on the tip of its cannon. The same thing when the cannon is facing on a different angle.I only know the rotation thing but not these trigonometric function I am looking for.

View 3 Replies

Runtime '429' ActiveX Cannon Create Object Error, Calling .NET From MSO On Vista

Oct 9, 2009

Our VB.NET application has a .NET dll, with a registered TLB file; so that VBA in Microsoft Word and Microsoft Excel can call into the application. The application functions correctly except when it is called into via MSO on Vista. This functions correctly on Windows XP machines but on Windows Vista and Windows 7 machines it is returning a 429 error. A reference to the TLB file can be assigned in the VBA References dialog box, on Vista.It doesn't appear to be a problem in our application as a simple Test libary does the same thing. Microsoft Applications have been 'Run As' Adminstrator, and Vista UAC is turned off, but I am thinking there is perhaps a security issue?

View 1 Replies

Game Programming :: Create A Picture Shuffle Game?

Jun 4, 2012

I am all new to Visual Basic 2008, I am trying to create a picture shuffle game, the problem is I cant seem to be able to move one picture from PictureBox1 to PictureBox2 onClick, here is a Code I written earlier:Sub ChangePicture(ByRef P1 As PictureBox, ByRef P2 As PictureBox)

[Code]...

View 1 Replies

Game Programming :: Create A Zombie Style RPG Game

Sep 11, 2009

Is there any visual basic 2005/2008 RPG games with the source code available for download.Could you possibly reply to this post with a link to the website with the game.Or is there a template i could use to try create a zombie style RPG game text or graphical.

View 2 Replies

VB 2008 Create A Program That Intercepts The Traffic Going Into And Out Of The Game Including Whats Writen In The Chatbox?

Aug 30, 2010

I have a game which has a chatbox in it and was wondering if its possible to create a program that intercepts the traffic going into and out of the game including whats writen in the chatbox.I am the host of the game.Basicly I want the information to be displayed in something like a richtextbox?

View 1 Replies

Cannon Camera With .net Application?

Oct 26, 2011

I have .net application used to capture photo from WebCamp by using the DirectShow dll.Now I want to Use my Digital Camera to capture photo using this application.So Can I use Cannon S70 or S95 to do this action. Or which brand of digital Camera Support my Request.

View 4 Replies

Projectile Motion In VB?

Feb 8, 2010

What I'm trying to do is simulate projectile motion in Visual Basic using Visual Studio. Essentially, something like this but without air resistance or mass.

Anyhow, the way I'm doing it is using a PictureBox and drawing the image in (of, say, a circle) every so often with a timer of interval 1 with its x and y properties being variables calculated by the formulas.

I want to know what formulas I can use to assign to x and y so that I get a movement like the one on the example. I've tried a bunch of stuff, with help from wikipedia and other sites, but can't seem to pull it off.

View 4 Replies

Drawing Projectile/Missile GIF Image Causes Lag

Nov 18, 2011

Been experimenting using VB.Net to make a game, Got most of it figured out but now my method of shooting missiles causes a terrible lag, This is how i'm doing it now.

Declares Private missiles As New ArrayList()
Dim canFire As Boolean = True

Fire

[CODE]...

Move all the missiles X positions + 1

Try
For Each pic As PictureBox In missiles
pic.Location = New Point(pic.Location.X + 1, pic.Location.Y)
Next
Catch ex As Exception
End Try

I have a timer making canFire true every second. It is a GIF Image, I tested with a PNG image and the lag is barely noticeable. Is there a better way to draw them while still being able to use GIF images?

View 5 Replies

Creating Projectile - Make A Space Invaders Rip Off

Apr 10, 2009

I'm trying to make a space invaders rip off, and I'm currently stuck on how to make the missile fire from the center of the player's ship. I have the missiles all in a control array, and they move up the screen fine, they just dont start at the x point of the ship, they start on the left margin.

Dim Line As Integer

If Missile(0).Location.Y < 391 Then

Missile(0).Location = New System.Drawing.Point(Line, Missile(0).Location.Y - 5)

[CODE]...

View 8 Replies

Create "a Windows Form Game Called Yahtzis Which Uses Five Dice And Three Throws To Create A Score"?

Oct 18, 2010

i am suppose to create "a windows form game called Yahtzis which uses five dice and three throws to create a score" .

The problem is that i don't even know how to start it can anyone shed some light.

View 2 Replies

Create A Basic Mmo Game For Fun In .net?

May 14, 2012

I'm trying to create a basic mmo game for fun in vb.net. I have done it before with a game api but I'm recently reformat my computer and can no longer find it. I'm trying to dynamically create a new picture box that will be my character or NPC and I can get the image to show up on the screen correctly but I'm not able to use "myGuy" anywhere else in the project. So the character basically sits there and does nothing. I'm wondering if there is away to call "myGuy" (myGuy.Top = 40) in another sub? If you know of a good game api that is not a hog and not expensive let me know.

[Code]...

View 3 Replies

Create A Football Game In .NET?

Mar 24, 2012

I spend my spare time trying to create a football game in VB.NET. I have a save game file saved using serialization which I am using to test code. This file contains all the elements of gameplay (stored plays, games, options, etc...) I create this file in the software itself using the code I created; I put a lot of work into this save game file and I would like to continue using it.

However, I discovered I need to add a couple member variables to the class from which the saved object is derived (object is called m_League, class is ClLeague). Any time I've altered ClLeague my old saved games don't load anymore because the new m_League object does not match the old m_League object. I have to start a new game and create m_League from scratch which wastes a lot of time.

This must pop up in with the professionals out there who write patches for software and need the users old saved files to continue working. Is there any trick to this situation or do I have to just accept it?

View 3 Replies

Create A Memory Game In Program?

Apr 16, 2012

I am a noob to Visual Basic and I am currently learning it at my college. I have a final project to do and I am having some trouble deciding on how to attack it. First off, I have done a lot of research and I cannot find my answer, so I am using this(post) as a last resort. The book my prof is having me use is outdated, its coding on vb6, and we are using vb2010...hence my problem. I am not looking for an answer in code, but more to be pointed in the right direction, or maybe some classes that I do not know about.[code]...

View 7 Replies

Create A Quiz Game Application In .NET?

Sep 23, 2010

I am building a quiz application in .net just like on flash mini games, is this possible in .net? and what is the easiest way to create this? make moving objects, cartoon interface and etc. also, it is supposed to be a standalone application.

View 1 Replies

Create A Scoring System Game?

Aug 6, 2009

how can i create a scoring for system for my Maths quiz game made using VB.My quiz game can generate automatic numbers / questions and shows a message box whenever the user gets the answer right or wrong. i.e.when the user presses the check answer button, a message appears stating that he/she go it right or wrong. Then the user can press the next question button to get a new question.

View 8 Replies

How To Create Save Game Function

Oct 17, 2011

I am trying to create a game using vb but don't know how to create a "save game" function. I was told something about saving to files but don't really understand it.

View 2 Replies

Create A DLL Injector For Using It In A Game But It Didn't Work

Jul 18, 2011

I've tried to create a DLL injector for using it in a game but it didn't work for me, here's the code:

Imports System.IO
Imports Microsoft.Win32
Public Class Form1

[code]....

View 1 Replies

Create A Little Program Where Can View A Few Game Servers?

Jul 18, 2011

I'm trying to create a little program where I can view a few game servers, specifically cs, cs:s, and cod4?

Imports GameServerInfo
Public Class Form1
Dim server As GameServer = New GameServer("74.201.57.23", 27015, GameType.CounterStrike)

[code]....

I've tested multiple servers as well that were up and running so It's not the servers I'm putting in.

View 5 Replies

Create A Multiplayer Game - Send Some Text

Jan 9, 2011

I'm trying to create a multiplayer game, but i don't know how to communicate between my programs, what I'm trying to send is some text, which my program can understand it. I searched for it and for making a chat application but found no working results...

View 10 Replies

Create A Program That Plays A Game With The User?

Oct 18, 2011

Im new to visual basic and im taking a class on visual basic currently We are suppose to create a program that plays a game with the user. The game is about guessing a random number the program guesses If you are too high from the computers guess it will tell you "too high"If you are too low from the computers guess it will tell you "too low"If you are right it will let you know your right Currently im having problem with Line 7, its saying RandomInteger is expecting declaration But i declared it above as a integer

[Code]...

View 2 Replies

Create A Sports Scoreboard That Has A Game Clock?

Feb 9, 2009

I am trying to create a sports scoreboard that has a game clock. (I am very much a noob at programming)I seem to have a problem with the game clock, I know I am sorry, another timer thread. (Trust me I read through about 50 of the 77 posts with 'countdown' in them)I have two solutions so far, unfortunately neither one are exactly what I am looking for. I want to have a scoreboard that counts down from a set time in the format of 00:00 and allows me to decrease and increase the time if it differs from the official clock.

[Code]...

View 6 Replies

Create A Tic-tac-toe Game But None Of The Tic-tac-toe Tutorials Use 2 Dimensional Arrays

Mar 14, 2010

I am new to VB, trying to create a tic-tac-toe game but none of the tic-tac-toe tutorials use 2 dimensional arrays. Since tic-tac toe is 3x3 I created 9 buttons and want either an X or an O to appear depending on where the user clicks. I want one set of instructions to handle the multiple buttons. I was told to use Case statements.

This is what I have so far. Not sure how much is right but hopefully it gives you an idea of what I am looking for.

[Code]...

View 20 Replies

Create A Video Poker Card Game Using VB?

Jun 10, 2010

I am looking to create a video poker card game using visual basic.I have limited knowledge of visual basic 8 but was very curious about visual basic 10.

View 4 Replies

Create Computer Guessing Game For College?

Mar 28, 2012

i am trying to create computer guessing game for my college. computer guess my number like i have random number in my head for example 45 then the first computer guess is 50 then i tell the computer that is too high then the next guess is 25 then i click low then it goes on i cant figure out how to make it run it like when i click on high it supose to get the number low then when i click on low then it suspose to go low but it doesnt.

Public Class frmMain
Dim IntLowestNum As Integer = 1
Dim intHighestNum As Integer = 100
Dim Count As Integer = 0

[code]....

View 2 Replies

How To Create Simple Points System For Game

Mar 30, 2012

I am creating a points system for a game, this is the code I have but it isn't working as I want it to.
Dim intScore As Integer = 10
Dim intNumOfGames As Integer = 0
intNumOfGames += 1
intScore = intScore - 2
The user will start will a score of 10, but everytime they click the button the user should lose 2 points off the score. But my code above that doesn't happen, when the user clicks the button it only happens once leaving the user with 8 points throughout the game.

View 1 Replies

How To Create Single Player Mouse Game

Oct 27, 2011

I create a mouse game for a single player. Set up a form with 4 rows of pictures boc controls. when a start button is clicked the mouse is "behind" one of the buttons while a stop image is behind 3 other picture boxes. The object of the game is to click the correct picturebox that contains the mouse. If the stop image appears before the mouse then the game is over. I don't understand how the logic works.

View 2 Replies

Borrow Code And Then Manipulate It To Create Tetris Game?

Nov 8, 2011

I have to create a game for programming class in school, my teacher said we were allowed to borrow code and then manipulate it our selves to create our own individual game. I chose Tetris so i am wondering if anybody has any code for this game from vb 2008.

View 2 Replies

Create A Form That Displays Rules Of Game On Label

May 10, 2011

I am having trouble with my code for Guess my number. I am definitely amatuer. Yes it is a homework assignment. No I am not asking you to do it for me. But I am stuck.Your GUI program is a game to be played by the user. See Screen Shot on Screen Shot Tab..A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user.The program must randomly select an number within the range of 1 to 900.Do NOT use a 'Start Game' button to generate the rand number. Generate a rand number when the GUI is loaded.

1. Create a form that displays the rules of the game on a label.
2. Create a textbox for the user to input the guess and also a 'guess' button.
3. If the user is outside the given range, provide a proper message (<1 Is not a valid guess or >900 is not a valid guess)and clear the guess.
4. When a user has a valid guess, display a proper message (either too high or too low) and tell the user to guess again.
5. With a correct guess, display a proper message and change the form's background color to red and disable the guess textbox.
6. Create a reset button that allows the user to play the another game with a new random number.
7. Create a show me button that displays the number and does not generate another random number (allow the current game to continue).
8. Create a exit button to exit the program.
9. Ensure that you include error checking to prevent a user guess that is out of the given range and for any non-numeric characters.
10. Create a single Help menu item that launches a message box that displays valuable and meaningful information for the program and usage.
11. Create a label that tracks the guess count per game. Each time a new number is generated, start the guess count at 0.
12. Create a max guess limit set to 5 and use a progress bar to track the progress to approach the limit.
13. After each valid guess (1-900), clear the guess and update a label/textbox that displays all of the previous guesses up to 5 entries.

Here is my code so far. I have been working on one point at a time and then testing it. I have not even made it to numbers 11 - 13. I am not getting actual errors. Instead of my reset button clearing all fields at once I am having to click it more than once. Instead of displaying messages per scenario the message label is staying on either input a number or your number is too low. My Answer is not displaying when Show answer is clicked-perhaps my answer coding is wrong? [code]

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved