I think the dictionary entry for whereIsThePoint() should be similar to this (additions in red):
get whereIsThePoint(line 1 of the points of grc 1,line 2 of the points of grc 1,the loc of btn "myButton")
This function returns:
"left" when the point (x3,y3) is left of the line (x1,y1,x2,y2)
"right" when the point (x3,y3) is right of the line (x1,y1,x2,y2)
"on" when the point (x3,y3) is on the line (x1,y1,x2,y2)
Attention! The sorting of the points is important. The first 2 parameters represent the point you look at, the second 2 parameters the point where you stand. If you reorder the paramters you pass for the same constellation of points you get the inverse result."
Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!
1 post • Page 1 of 1