Posted: 20th Aug 2011 2:29
I was using some code for clicking boxes and I can't get it to work:

+ Code Snippet
Global Dim InputX [] as Float
Global Dim InputY [] as Float

do

    Print ( InputX )
    Print ( InputY )

    InputX = GetPointerX()
    InputY = GetPointerY()

//Possible Player Input
    If InputX < 230 and InputX > 62 and InputY > 270 and InputY < 320 and GetPointerPressed() = 1
        DeleteSprite ( 11 )
        DeleteImage ( 11 )
        BeginGame = 1
    Endif
loop
Posted: 20th Aug 2011 2:45
I found a way to get it to work looking at Santas Bad Elf Example so no more help is needed.


Cheers.
EDIT:
Does anyone know how to get a program to close?
Posted: 20th Aug 2011 3:17
What do you mean? If you mean just shutting it down use the end command. That will close down the program if you want to put an exit in the options or such.
Posted: 20th Aug 2011 3:28
Yes, it worked after I changed the conditions. Thanks though.


Cheers.