Posts: 46
Threads: 12
Joined: Dec 2002
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.
Posts: 6,419
Threads: 74
Joined: Mar 2002
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.
Posts: 1,080
Threads: 87
Joined: Feb 2002
Posts: 1,845
Threads: 44
Joined: Aug 2002
Posts: 46
Threads: 12
Joined: Dec 2002
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.
Posts: 3,288
Threads: 167
Joined: Nov 2001
Posts: 1,080
Threads: 87
Joined: Feb 2002
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]