Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RANDOM DRAW
#1
is it possible to make the comp draw randomly in different directions use the draw command
img]http://forums.rleague.com/images/avatars/westsig.gif[/img]

go the mighty maggies.
(thanks yakstorm)

i regularly visit a rugby league version of these forums. i have amassed almost 2k worth of messages.
Reply
#2
Yes, it is. You just have to compute a random number and then choose a direction according to that random number. Check QB help for the DRAW commands.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
and STR$
/post]
Reply
#4
then use DRAW "X" :lol:
Reply
#5
guys i have no idea what u are talking about.

can u explain it to me like i am a beginner at QB
img]http://forums.rleague.com/images/avatars/westsig.gif[/img]

go the mighty maggies.
(thanks yakstorm)

i regularly visit a rugby league version of these forums. i have amassed almost 2k worth of messages.
Reply
#6
Challenge forum:

http://forum.qbasicnews.com/viewtopic.ph...76&start=0

4th post, first page...

;*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#7
STR$ returns a string from a number

Code:
SCREEN 12
RANDOMIZE TIMER
PSET (320,240),4
DO
DRAW "ta"+STR$(RND*360)+"u10"
LOOP WHILE INKEY$=""
/post]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)