you can use dim() command for individual control
for example
dim position(nrofpeople,2)
--->here is position(1,1) for example the position on the x-axis of object id nr1, and position(18,2) is for example the position on the y-axis of object id nr18...
for the AI, you could use functions...
1: get the width and height of your sprite. (i always do it this way:
load bitmap "bmp.bmp",1
bx=bitmap width(1)
by=bitmap height(1)
get image 1,0,0,bx,by
sprite 1,x,y,1
2: well, the code off course-->
(in a loop)
if mousex()>spritex-bx/2 and mousex()<spritex+bx/2
if mousey()>spritey-by/2 and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.