Computer Science Canada

another game by me. just a target one

Author:  white_dragon [ 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?

Author:  Maverick [ Sat Feb 07, 2004 5:32 pm ]
Post subject: 

Have u even made a shooting function?

Author:  white_dragon [ Sat Feb 07, 2004 5:33 pm ]
Post subject: 

sry. arrow keys move around, then space bar.

Author:  Cervantes [ Sat Feb 07, 2004 5:41 pm ]
Post subject: 

Input.KeyDown

that's really neat that you were able to make a semi-working game without Input.KeyDown though.

Author:  white_dragon [ Sat Feb 07, 2004 5:43 pm ]
Post subject: 

oh. lol da other guy said tat before Embarassed . sry if i'm gettin stupid but i don't really know how 2 use it.

Author:  Cervantes [ Sat Feb 07, 2004 6:29 pm ]
Post 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

Author:  white_dragon [ Mon Feb 09, 2004 4:37 pm ]
Post subject: 

tks! Very Happy Very Happy Very Happy it really helped me!


: