Make The Ball Move Faster?
Apr 26, 2011how to change the balls speed
View 2 Replieshow to change the balls speed
View 2 RepliesI'm attempting to move an image (technically a Powerpacks ball...).
Public Class Form1
Dim XSpeed As Decimal
Dim YSpeed As Decimal
Dim BallLocation As New Point(Ball.location.x, Ball.location.y)
[code].....
I'm coding the game timer, but am noticing that the gameBall is undeclared and don't see it in the tutorial.Private Sub gameTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gameTimer.Tick
[Code]...
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]...
I have a this program I have to write but I have no clue where to even start.New Years Ball Drop?Design a program that replicates the Times Square New Year�s Eve ball drop. You can use a picture from the Internet of the ball you wish to use.Functionality Requirements:
-The ball will take exactly 30 seconds to move down the pole
-Need a timer to count down from 30 and reach 0 when the ball is at the end of the pole
-The timer will randomly change colour every few seconds
- When the ball has finished descending, the text �Happy New Year!� will display on the screen
-Need a button on the form that, when clicked, stops the ball drop and timer (so screenshots can be taken). When the button is clicked again, the timer and ball drop should resume from where it left off.
I am now trying to make a bouncing ball in vb 2008, ofc i looked at some guides first to see how they built their codes
Public Class Form1
Dim m_Dx As Integer
Dim m_Dy As Integer[code]....
As you see there are many variables
Ive been experimenting with physics of objects in visual basic and what (a boucing ball) and Ive been wanting to take it the step further, make the ball bounce around the desktop. but how.
View 5 RepliesI am trying to make a program that will calculate the height of a falling ball for every .25 seconds starting at 0 and going till the height = 0 or until 10 items have been listed. I have started the code, but it just isnt working out!
Dim h, time as double
Dim aftert as integer
Do While h>0
[Code]....
I get an "expression needed" error from the &time& and nothing is displayed in the list box. Not to mention, I have no idea what to put in the loop or how to limit the list to 10 items or until the ball hits 0.
Im using RichTextBox from Visual Studio 2008 to show various RTF content and it is slow. I mean really slow. Is there any way to improve the loading speeds of LoadFile function?I tried to load directly from memorystream (without saving file to disk) but it's still slow.I read plenty info about how RichTextBox is slow and all. Has there been any improvements in Visual Studio 2010?
View 5 RepliesIs it possible to make a vb.net application faster Through code like using characters that the Computer already understands Like coding in certain areas through y x (math) etc. Will it be More faster since the compiler don't have to really do much work But its still must be VB.NET
View 19 RepliesOk well i have a code that makes a bitmap the size of 9000,9000 but it makes the program run so slow. how to make it run faster?
View 5 Replies*i have a vb.net application that plots 16 plots immediately, the plots data are realtime. the 16 plots must draw the points at the time they receive them (must be no delay), to do that 1- i made a timer with ticks at 50 ms.2- at each timer tick call the plotting function 16 times (with a graph name as parameter)like that:
[Code]...
i have a program in VB.Net 2005 and my problem is that it runs very slow. I mean, it takes some time for the Form to be displayed even if it is not doing anything in the Form_Load event. Do all programs in VB.NET 2005 act like that? my programs in VB6 would display the Form instantly.
View 4 RepliesWell my application is 37 KB size, but when i start the program it took like 10-15 sec to startup, is there a way or code to make my applications run fast and fresh?
View 2 RepliesI have this code
Public Function ColorInvert(ByVal pic As Bitmap)
Dim i, j As Integer
Dim c As Color
For i = 0 To pic.Width - 1 Step 1
For j = 0 To pic.Height - 1 Step 1
[Code]...
I was using a JSON MAKER class to make a JSON string to send off from my webservice - it was way too slow - so I thought I would do the string manipulation right in the recordset loop - how could I go wrong - it is only 1141 records![code]...
View 10 RepliesSince i have a background on my progam it is very slow. You got a code to make it faster?
View 2 RepliesBasically what i need is for something to look at the items in a list box then compare it to the contents that is in the database. The issue is that the listbox can have more than one of the same item. For instance, LstBox_Order.items(0) could be the same at any position in the listbox. This code works, but it is slow if there is like 10 or more items added.
[Code]...
I have a datagridview that takes time when loading, and once loaded, is also very slow when using the scroll bar to see the other rows.[code]..
View 12 RepliesI have a function that I use quite a bit that I wrote more than 2 years ago. It works fine but recently I saw how it can use up a good deal of time under certain condition. Here's some code that uses the function SelectValue The function works so that if you had N which you plug into the function rising continuously while SelectLimit was set to 255 then SelectValue would match N until N reached 256. SelectValue would start to descend to 0 until it reached 0 and then it would again ascend to 255 and the process would repeat. So SelectValue(255, 255) would return 255 and SelectValue(256, 255) would return 254. SelectValue(257, 255) would return 253.
Option Strict On
Public Class Form1
Dim sw As Stopwatch
[code]....
The function works exactly as I want it to but if one of you knows a way to write this so that it will process faster then you can let me know. I get a result for processing time of 6.11 seconds on my computer for the above code.
I am working on a small program to teach myself how to use timers, and I would like to know if there is a way to make the timer control faster.I set the Interval property to 1 and it is to slow for what I am trying to do.(All I am trying to do is loop a button left to right, right to leftand so on in a Panel)
View 39 RepliesAlright im trying ot make a website login for Gmail to check my email faster Woohoo..Im trying to make a form with 2 textbox's one for pass one for email. Im trying to make it so when the user clicks on the login button on the form it will use the email/pass in the 2 textboxs and then open my build in webbrowser.But if it fails i want it to send back a message saying "Information Incorrect". [code]
View 12 RepliesI need to perform a huge amount of registry read operations, and I'm trying to figure out a way to make each read operation faster than using My.Computer.Registry.
If I used APIs directly to do it, it should be faster, right?
How can I improve this bit below to make the items in the TreeView to sort faster or something totally different to sort them easier?
[Code]...
I am trying to make a Bouncing ball, not with an ovalshape but with a graphic. This is the code so far.
Public Class Form1
Private r_index As Integer
Private startx As Integer
[code].....
in school im making a dodge ball game but i cannot get the ball to return to its original position. My code and form are below
[Code]...
Write an application that allows the user to play a game, in which the goal is to prevent a bouncing ball from falling off the bottom of the Form. When the user presses the S key, a blue ball bounces off the top, left and right sides (the �walls�) of the Form. A horizontal bar on the bottom of the Form serves as a paddle to prevent the ball from hitting the bottom of the Form. (The ball can bounce off the paddle, but not the bottom of the Form.) The user can move the paddle using the left and right arrow keys. If the ball hits the paddle, it bounces up, and the game continues. If the ball hits the bottom of the Form, the game ends. The paddle�s width decreases every 30 seconds to make the game more challenging.
View 4 RepliesI am trying to make a 'puppet' change into a ball when I press e.g. the right arrow key. I used getasynckeystate(keys.right) to check for the key in a timer. The moving is working well but I don't have an idea how I can make it change in a picture of the 'puppet' changing which then changes into a ball. Does someone know how to do this?
View 3 RepliesI'm trying to make the move from VB6 to .Net; I know Bill needs the money, but my real motivation is to move my VB6 client-server app to .Net before Bill finishes killing off VB6. My VB6 app uses SQL Server 2005 Database, ADO, and heavy inline queries and some stored procedures. I'm weak on oop, but willing to go there.
My biggest concern so far is not being able to fully use my database w/o extensive redefining.I think Bill went oop crazy and forgot why we use databases. I wanted to bind all objects in my code, but coding the work of the wizards is not coming easy for me. My qt pertains to using ADO.Net or LINQ for database access. I'm going to have to put in a lot of book hours either way, but which way should I go for a client server app? I read that Bill is handing off the LINQ to the ADO.Net team. Is LINQ the future for client server or is it a dead-end?
i have a vertical progressbar with already filled a bar and it moves downward.How can i fil up the bar move upward?[code]When i try to load the form and start my verticalprogressbar it's move downward,it is possible to do it to move upward?
View 3 Replies