Click to See Complete Forum and Search --> : How would I move something around...?
Unreal
Jan 27th, 2000, 08:26 AM
How do i move something around screen using the keyboard? I want to move a shape around when i press the keys. Also, i want it to shoot a "bullet" out and when it hits another shape, cause both to be removed.
if you could tell me the source code, that would be VERY MUCH appreciated. thank you.
SteveCRM
Jan 27th, 2000, 11:02 AM
In the keydown section of your form put,
If keycode = vbkeyleft then image1.left = image1.left - 100
I do have code for collision detection, but please give me some time, the code is on my other computer and I never memorized that line (it's a long line).
Email me at SteveCRM@aol.com and I will send some samples, and show you how to move the images smoother.
Steve
*Super Sniper*
Feb 11th, 2000, 03:20 PM
Also you will need to set your key-preview proporty to true.
------------------
Website (http://www.kaynor.net)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.