
-----------------------------------
white_dragon
Sat Feb 07, 2004 5:16 pm

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?

-----------------------------------
Maverick
Sat Feb 07, 2004 5:32 pm


-----------------------------------
Have u even made a shooting function?

-----------------------------------
white_dragon
Sat Feb 07, 2004 5:33 pm


-----------------------------------
sry.  arrow keys move around, then space bar.

-----------------------------------
Cervantes
Sat Feb 07, 2004 5:41 pm


-----------------------------------
Input.KeyDown

that's really neat that you were able to make a semi-working game without Input.KeyDown though.

-----------------------------------
white_dragon
Sat Feb 07, 2004 5:43 pm


-----------------------------------
oh. lol da other guy said tat before :oops: .  sry if i'm gettin stupid  but i don't really know how 2 use it.

-----------------------------------
Cervantes
Sat Feb 07, 2004 6:29 pm


-----------------------------------
its not hard to use

part one: the variable for the keys

var chars : array char of boolean

part two: Input.KeyDown


var chars : array char of boolean
loop
   Input.KeyDown (chars)
end loop

part three: if statements


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
Mon Feb 09, 2004 4:37 pm


-----------------------------------
tks!  :D  :D  :D  it really helped me!
