VB Info - Random Object Movement?

Hi all, I need some info on moving an object randomly across the screen. For example, a hovering circle that just randomly drifts all over the screen, at various angles and velocities.


Thanks in advance for ANY help!


Comments

  • : Hi all, I need some info on moving an object randomly across the screen. For example, a hovering circle that just randomly drifts all over the screen, at various angles and velocities.


    : Thanks in advance for ANY help!


    Use a random number generator and have it generate the horizontal speed as well as a vertical speed. Make sure that the speeds can be both negative and positive.


    -Xotor-


  • Just use the rnd method, and some math functions

    to figure out the rest. By the way, programming

    a game in vb is not a good idea, it will run slow,

    flicker, and will also take up alot of space.


    Try a new language because vb is used to make

    applications and was/is not intended to make

    games.




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories