Author |
Message |
white_dragon
|
Posted: Sat Feb 07, 2004 5:16 pm Post subject: another game by me. just a target one |
|
|
here's another game. tis one is even more screwed over. sometimes when it draws a dot, it goes off screen.
also, the cursor can go off the screen. i'm not sure how to make a boundary. can someone help me?
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Target.t |
Filesize: |
4.74 KB |
Downloaded: |
305 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Maverick
![](http://server2.uploadit.org/files/gregdilts-bleh2.jpg)
|
Posted: Sat Feb 07, 2004 5:32 pm Post subject: (No subject) |
|
|
Have u even made a shooting function?
|
|
|
|
|
![](images/spacer.gif) |
white_dragon
|
Posted: Sat Feb 07, 2004 5:33 pm Post subject: (No subject) |
|
|
sry. arrow keys move around, then space bar.
|
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Sat Feb 07, 2004 5:41 pm Post subject: (No subject) |
|
|
Input.KeyDown
that's really neat that you were able to make a semi-working game without Input.KeyDown though.
|
|
|
|
|
![](images/spacer.gif) |
white_dragon
|
Posted: Sat Feb 07, 2004 5:43 pm Post subject: (No subject) |
|
|
oh. lol da other guy said tat before . sry if i'm gettin stupid but i don't really know how 2 use it.
|
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Sat Feb 07, 2004 6:29 pm Post subject: (No subject) |
|
|
its not hard to use
part one: the variable for the keys
code: | var chars : array char of boolean |
part two: Input.KeyDown
code: |
var chars : array char of boolean
loop
Input.KeyDown (chars)
end loop |
part three: if statements
code: |
var chars : array char of boolean
loop
Input.KeyDown (chars)
if chars (KEY_UP_ARROW) then
x := x + 1
end if
end loop |
the keys that you need
KEY_UP_ARROW
KEY_DOWN_ARROW
KEY_LEFT_ARROW
KEY_RIGHT_ARROW
KEY_CTRL
the complete list of keys for Input.KeyDown is found in the Help file under
content --> predefined modules --> Keyboard
|
|
|
|
|
![](images/spacer.gif) |
white_dragon
|
Posted: Mon Feb 09, 2004 4:37 pm Post subject: (No subject) |
|
|
tks! it really helped me!
|
|
|
|
|
![](images/spacer.gif) |
|