Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-01-2007, 09:38 AM   #1
Daemon Poster
 
Join Date: Dec 2006
Posts: 593
Send a message via AIM to Haku Mioje Send a message via Yahoo to Haku Mioje
Default needing to know something in visual basic

ok im trying to make a small little game in visual basic and i dont know the function that i need to use that makes the object move automatically. what im trying to make is a pacman game and i need the automatic move function that tells the pacman to keep moving after pressing a key and releasing it. if no one understands what im trying to say then ill rephrase it again.
__________________

Haku Mioje is offline   Reply With Quote
Old 04-01-2007, 07:15 PM   #2
Daemon Poster
 
xtremezx2's Avatar
 
Join Date: Sep 2006
Posts: 915
Default Re: needing to know something in visual basic

well, i think i get what you wanna do. you'll have to use the keydown event handler to make it move (may have already figured that). but to keep it moving you'll need to create your own function that is controlled by a flag of some type that is triggered by the keypress event. Something like that could work if done right, I've not done stuff like this in vb in a long time so I'm definently rusty and don't know if this will help much. To figure it out exact i'd have to code it and I have 3 projects due this week. If you still need more help let me know and if no one else helps i'll help ya figure something out.
__________________

xtremezx2 is offline   Reply With Quote
Old 04-01-2007, 10:44 PM   #3
Daemon Poster
 
Join Date: Dec 2006
Posts: 593
Send a message via AIM to Haku Mioje Send a message via Yahoo to Haku Mioje
Default Re: needing to know something in visual basic

alright thanks man, you helped me out alot actually, if you could further show me a little of the event, put a little psudo code if you dont have time then dont worry about it ill try to look it up now that i know what to look for
Haku Mioje is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 09:22 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0