Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
I am fucked and need you're help (VB6 CODERS)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="St4nley" data-source="post: 211438" data-attributes="member: 31081"><p>yeah </p><p>exactly, they are floating and i dont want them to float, i had also added this in the meantime</p><p> </p><p>[CODE]Private Sub Form_keydown(keycode As Integer, shift As Integer)</p><p> If keycode = vbKeySpace Then</p><p> goodVel = goodVel * 1</p><p> imgball.Top = imgball.Top - goodVel</p><p> </p><p> End If</p><p>End Sub[/CODE]</p><p> </p><p> </p><p>it basically says that if i hit space bar, then that ball will move up but its also fucked because i have to hold space for it to move,</p><p>but i want to just float after i hit space so now i have 2 issues</p><p> </p><p>BALL FLOATS WHEN I DONT WANT IT TO</p><p>BALL DOESNT FLOAT WHEN I WANT IT TO</p><p>IRONIC?</p><p>I THINK SO</p><p> </p><p>EDIT: I FIXED THE ISSUE WHERE I HAD TO HOLD SPACE HERES WHAT I DID[CODE]goodVel = imgball.Top - shpBall.Height - shpBall.Width[/CODE]</p><p> </p><p>I SAID THE DISTANCE FROM THE TOP OF MY WHITE BALL THE USERS BALL AND THE DISTANCE FROM THE GAME BALL YOU WANNA HIT IS THE DISTANCE IT MUST TRAVEL</p><p> </p><p>SO WHAT PROBLEMS DO I FACE?</p><p>THE BALLS ARE FLOATING WHEN I DON'T WANT IT TO</p><p>PLEASE HELP!</p></blockquote><p></p>
[QUOTE="St4nley, post: 211438, member: 31081"] yeah exactly, they are floating and i dont want them to float, i had also added this in the meantime [CODE]Private Sub Form_keydown(keycode As Integer, shift As Integer) If keycode = vbKeySpace Then goodVel = goodVel * 1 imgball.Top = imgball.Top - goodVel End If End Sub[/CODE] it basically says that if i hit space bar, then that ball will move up but its also fucked because i have to hold space for it to move, but i want to just float after i hit space so now i have 2 issues BALL FLOATS WHEN I DONT WANT IT TO BALL DOESNT FLOAT WHEN I WANT IT TO IRONIC? I THINK SO EDIT: I FIXED THE ISSUE WHERE I HAD TO HOLD SPACE HERES WHAT I DID[CODE]goodVel = imgball.Top - shpBall.Height - shpBall.Width[/CODE] I SAID THE DISTANCE FROM THE TOP OF MY WHITE BALL THE USERS BALL AND THE DISTANCE FROM THE GAME BALL YOU WANNA HIT IS THE DISTANCE IT MUST TRAVEL SO WHAT PROBLEMS DO I FACE? THE BALLS ARE FLOATING WHEN I DON'T WANT IT TO PLEASE HELP! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
I am fucked and need you're help (VB6 CODERS)
Top