View Single Post
Old 29 September 2016, 17:19   #3
Dan
Registered User

Dan's Avatar
 
Join Date: Nov 2004
Location: Germany
Posts: 357
Can you give us an example of what you are trying to do ?

Here is an example of what you can do, its not the amiga basic syntax but you can get the Idea.

Code:
If (x=50 and y=70 and mousebutton=1) or (x=70 and y=80 and mousebutton=1) or (x=110 and y=200 and mousebutton=1)
  ...code
EndIf
In case they need to do all the same thing,then you can split it into following:

Code:
If mousebutton=1
  If x=50 and y=70 then check=1     
  if x=70 and y=89 then check=1
  if x=110 and y=200 then check=1
  (here you can use as many if's as you need) 
EndIf

If check=1 
  ...code
 check=0
EndIf
of course there are many ways to write this, so an example is needed with an explanation of what should be checked.
Dan is offline  
 
Page generated in 0.08412 seconds with 10 queries