Results 1 to 3 of 3

Thread: is it possible to make a little game

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    I know I will have abosolultly no problem doing this in VB but in VB Script how do I make it so that the left and right key board keys move the character left and right, then food is flying at the character, and it tries to eat the food, and it gets points everytime it eats something.

    is this even possible to do in vb script?

    thanks in advance
    NXSupport - Your one-stop source for computer help

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Hmmm..... possible maybe, but not exactly easy. Usually this kind of thing is done with a Java Applet. I am pretty sure you can move images around and stuff, but I'm not sure if you can get keypresses like you can in VB.
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    New Member
    Join Date
    Feb 1999
    Posts
    2
    Use DHTML and VBscript you can no problem.

    Look forthe events onKeypress() as it returns a keycode that you can translate for the arrow keys.

    to move an image around the screen, use DHTML.

    <div id="sprite" style="position:absolute; left:10; top:10;">
    <img src="piccy.gif">
    </div>

    and script like so:

    document.all["sprite"].style.pixelLeft = 30;
    document.all["sprite"].style.pixelTop = 100;


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width