VB: Application On Top Of A Game?
Feb 11, 2012
I'd like to write an application drawing a certain visual object (e.g. a semi-transparent triangle) over a full-screen game. The game has a "strong on-top" property as it covers all other applications classified as "on top".I need my application to be the top-most on-top application, and always on focus, without affecting the smooth run of the game behind.
View 1 Replies
ADVERTISEMENT
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
Jun 27, 2012
I'm developing a game and I'm there a lot of things that change after a few minutes, so I created a New Game button where I use Application.Restart() to clean everything and get a new fresh game, but the problem is that this exits the game and starts a new one. What I want to do is to restart a game, but without the players noticing that the game exits. How do I do this?
View 1 Replies
Dec 15, 2011
I have this progamm and i want to add points when a letter is found 10 points PLZ HELP ME! i also want to make it for two players
Module Module1
Public zoes As Byte
Sub Main ()
[CODE]...
View 2 Replies
Jun 17, 2011
Is there a way to make a health variable that, when hit, you lose health?
View 3 Replies
Dec 6, 2009
I play a lot of Counter Strike: Source.. and I was wondering if there was anyway that I could make an application that stays on top of Counter Strike while I am in game.
View 4 Replies
Mar 15, 2009
I'm having some wierd problems with my Looping. I'm was using a thread to start a looping routine to sample the keyboard for pressed keys. The loop worked fine when I made a call to it from the thread in my form load routine. However when I just made a call to the samplekeys routine without using the thread my application will freeze and it won't load.I'm making the call in the form load routine. Private KeyThread As NewThreading.Thread(AddressOf SampleKeys)hen start the thread in the form loading procedure , but if I just make a direct call to the samplekey routine without using a thread my application freezes.Here is the the thread don't think there is a problem with it.
Public Sub SampleKeys()
Dim N As Integer
N = System.Environment.TickCount
[code].....
View 1 Replies
Nov 20, 2008
I have a program that speaks wave files. This works problemless with the Soundplayer class with the following code:
Sub MyPlayWav(ByVal WavFileName As String, ByVal StartPos As Long, ByVal EndPos As Long)
Dim wp as new SoundPlayer
wp.SoundLocation = WavFileName
wp.Play
End sub
The soundplayer does however not seem to have a method to play the wave from position StartPos to position EndPos and achieving just that would mean quite a reduction in downloads of these files.
The soundplayer does have a stream object, and that does have a seek method, suggesting that there might be a way to accomplish this, but how?
I plan to include other media files as I am developping the project, and I guess I will be confronted with the same problem.
View 2 Replies
Mar 27, 2011
i want to use window form application to write this game?
View 3 Replies
Apr 29, 2012
I have to make a bouncing ball game application. all the code is given to me except for code to move the paddle left and right, and code to start the game. i have to write an if...then statement in a keydown event handler that tests whether the user presses the s key. i then have to add an elseif statement that tests whether the user pressed the left-arrow key and whether the paddle's horizontal position (rectangleX) is greater than zero. if the paddle's horizontal position equals zero, the left edge of the paddle is touching the left wall and the paddle should not be allowed to move farther to the left( i am not sure how to do this part). if the conditions are true in the if then statement, the paddle's x-position should decrease by 10. then i need an elseif statement that tests whether the right arrow key is pressed and whether the paddles x-coord is less than the width of the form minus the width of the paddle. if it equals out the paddle should not be allowed to move farther right. if both conditions are true the paddles x-coordinate is increased by 10
This is the code i have written:
Private Sub BouncingBallForm_Keydown(ByVal sender As Object, _
ByVal s As System.Windows.Forms.KeyEventArgs) _
Handles BouncingBallForm.Keydown
[CODE]...
View 1 Replies
Apr 2, 2012
I want to make a simple quiz game like kbc in vb.net 2008, for that i have created five buttons in my vb application. and one table in sql as under
create table kbc
(
Question varchar(100),
Option1 varchar(100),
Option2 varchar(100),
Option3 varchar(100),
Option4 varchar(100),
Answer varchar(100)
)
And i have inserted these records in this table like this
insert kbc values('Largest key of ur pc is ','Enter','Backspace','Shift','Space','Space')
insert kbc values(2,'How many muscles are there in a human body ?','206','602','605','208','605')
Now back to my vb form the first button will catch the question and second,third,fourth,fifth buttons will catch options from sql database that i have shown. just as kbc i want to show one question with its four options. and when user click on any button i also want to check the right answer. right answer is also in my kbc table's Answer column. to do that i have written this code
Imports System.Data.OleDb
Imports System.Data
Imports System.Threading
Imports System.Data.SqlClient
[CODE]...
On all button's click i have declared temp variable to catch the last column's text from my sql table and then i want to match this text with the text of that button the user clicked. if texts match i want to go to the next question of my quiz program. how to do that working. but it is not working as i want.
View 2 Replies
May 1, 2010
I am trying to create a slot machine application. I wanted to make a handle like gui so here is what I have:
[URL]
What I want is to be able to let the user drag the red button till a certain point and when they let go of the mouse click the button moves back slowly to the top.Here is what I have so far (I tried my best) :
Private Sub picBall_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles picBall.Click
tmrOne.Enabled = True
tmrTwo.Enabled = True
[code].....
View 3 Replies
Apr 2, 2008
im trying to make a game in visual basic in which your character can move around, jump, and kill things. I can get the picture box with the character to move and everything is fine. but i did run into one problem. when the character moves over a tree (or something) you can see the gray backround of the character as i made in paint. how do i make the backround of the picturebox transparent?
View 4 Replies
Nov 18, 2011
I want to make a program that enables a game to have more than one instance running, where it would otherwise be unable to be done. How should I go about this? A sandbox? Hack?
View 3 Replies
Oct 3, 2011
Im new to VB. how do I get to add the score.my code is
[Code]...
View 6 Replies
Jul 2, 2009
I am working on a poker game and I have the game setup the way I want it in terms of graphics and I have the code programed to deal the cards out exactly how I want them. Granted, the code is very simplistic, but functional for a new programmer like myself. I'm sure there are other more efficient ways to code my game, but I like mine so far because I can at least understand the majority of it. With that being said, here are a few problems and questions that I have.
1. How come when all 12 cards are dealt out I have some cards repeating in the game? For example, I get queen of diamonds in more than one picture box when I only want the card to be dealt once and then removed until the next game.
2. I was hoping to have a button 3 to clear all the boxes, basically resetting the game to the next game. When I hit button 3 it only clears the contents of picturebox 10 and 12.Other notes: I have the deal down the way I want it. It deals the first 10 picture boxes and a second button deals the 11 and 12 picture boxes.
3. I know this is my next step so I want to post it with the code I currently have. I want to start taking my project one step further by evalutating each of the three rows of cards (3 rows of 3 cards each - I'm not worried about the dealers hand (picture box 10, 11, 12 yet). So I want to evaluate a row of pictureboxes against a "pay scale" and display the win in a text box or label next to the 3 card hand. For example, Q of diamonds, Q of Clubs, Q of spades would win 15, etc. ( have a weird feeling I may have to change the names of the cards (I have them named card1, card2, etc. right now) to something that identifies them in order to evaluate the hands.
Here is the code that I currently have. I'm using visual basic.
Public Class Form1
Dim Rndm As New Random
Dim myPB(11) As PictureBox
Dim HiddenCards As New List(Of String)
[code]....
View 1 Replies
May 4, 2011
I have created a scrabble game that generates random letters. For the user to type in a word using the random letters they have to type it in a text box.
I want my program to prevent users from typing in letters that are not provided in the text box and to allow them to type in the random letters that are provided.
View 4 Replies
Feb 16, 2011
I'm trying to make a simple fruit machine game for windows mobile device.
I can create the game easily enough and flip through pictures in a picture box to display the correct symbol.. but what I'd like to do is do a proper spinning reel, but have no idea where to even start.
What I have is a list of images in an imagelist (or individual files) - what I'd like is them attached to each other and moving downwards, preferably as though it were going around a drum but just them moving would be a start.
View 7 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
Apr 18, 2012
On programming assignment without having any real experience in vb. I guess I don't understand subroutines that well. When the program runs it never goes to the computer's turn and does not update the users score either. This assignment is already in but would like to know what is going wrong. Using VB 2010, and this is windows application.
Code:
Public Class Form1
Dim Myturn As Integer
Dim Computerturn As Integer
[CODE]...
View 6 Replies
Mar 11, 2010
I'm trying to make a 2D platform game and I'm pretty inexperienced at programming. I've coded the player to move left and right and jump, but I can't figure out how to prevent multiple jumps while the player is in the air. Anyone know how to do this?
View 8 Replies
Jan 13, 2012
Check Score: The winner is the one with the highest score less than or equal to 21If both scores(player total and computer total) are over 21, or if both are equal but under 21, the game is declared a draw.
There is something wrong with this line:
If intPlayerCardTotal < intScore And intComputerTotal < intScore Then
MsgBox "Draw"
[code]......
View 6 Replies
Apr 30, 2011
Upon changing the field size a game should restart. Upon trying to do so I see the previous grid (e.g. 10x10) displayed on top of the new one (e.g. 4x4). How would I prevent this and indeed start the game fresh?
View 10 Replies
Feb 4, 2011
So here is my problem. I have a vb game with animated sprites and all, and the character even jumps. However it only works in the y direction. So if i'm moving, he stops in place and jumps, instead of jumping forward. I was wondering if someone knew how to make him move at the same speed forward during the jump.
[Code]...
View 2 Replies
Apr 19, 2011
I currently have a who wants to be a millionaire game that I have made in visual basic 2010. Each question is in its own form. Form1 opens at the start, and question 1 is opened by a button click on Form1. The user has to click on the picture box at the side to show the text for the question each time. If they answer incorrectly, it displays a message box, opens an input box asking for their name, and goes to the form with the high score list, Form17.
Upon opening Form17, I want the scores to load and be displayed in the list box. The high scores are saved in a text file at C: est.txt . Upon clicking menu or end, the high scores are saved to the text file.
View 2 Replies
Apr 1, 2009
I m writing a video poker style game. the form consists of the player's 5 cards, a deal button, a hold button for each card, a button to select amount to play that hand. im using Visual Basic 2008 Express Edition.
View 10 Replies
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
Apr 18, 2010
im struggling to work out the code for 3 of a kind in my yahtzee game, i think that if i can work this out i can sort my everest of the full house code!
can someone tell me where ive gone astray?
code:
View 8 Replies
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
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