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: |
|
Download |
Filename: |
Target.t |
Filesize: |
4.74 KB |
Downloaded: |
298 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Maverick
|
Posted: Sat Feb 07, 2004 5:32 pm Post subject: (No subject) |
|
|
Have u even made a shooting function?
|
|
|
|
|
|
white_dragon
|
Posted: Sat Feb 07, 2004 5:33 pm Post subject: (No subject) |
|
|
sry. arrow keys move around, then space bar.
|
|
|
|
|
|
Cervantes
|
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.
|
|
|
|
|
|
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.
|
|
|
|
|
|
Cervantes
|
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
|
|
|
|
|
|
white_dragon
|
Posted: Mon Feb 09, 2004 4:37 pm Post subject: (No subject) |
|
|
tks! it really helped me!
|
|
|
|
|
|
|