There's your problem. Don't use a select case or an if...then...else.
Thanks about it. If one condition happens, it ignores the rest. So
you should just use an if...then without the else:
if key up is down then
end if
if key right is down then
end if
if key left is down then
end if
On Dec 20, 2005, at 7:58 AM, Floyd Resler wrote:
That's the method I use. However, when the right arrow key is
being held down, it doesn't seem to recognize the spacebar. But, I
think I just realized what I'm doing wrong. I use a FOR/NEXT loop
to find out which key is being pressed and then a SELECT CASE to
act on it. The FOR/NEXT loop is outside the SELECT CASE. I bet if
I move the SELECT CASE inside the FOR/NEXT loop, it will probably
work.
Thanks!
Floyd
On Dec 19, 2005, at 9:31 PM, Seth Willits wrote:
On Dec 19, 2005, at 5:35 PM, Floyd Resler wrote:
How can I determine when more than one key is being pressed. For
example, the right arrow key is being held down and then the
spacebar is pressed.
Use the SpriteSurface.KeyTest method, to ask if a specific key is
down.
-- Seth
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|