Quote from: Rui "Frank-N-Furter" Pires on Sat 16/04/2005 15:46:22
EDIT - The tough part is, I'll ALSO need these buttons:Code: ags -------- | / | / | / | / |/ |/ /| / | / | ----
...and the lower one is supposed to fit into the upper one... and this goes on in a grid of about 10x10 squares of dynamic dimensions.
Egad.
For example, if these 3 "sawteeth" are at screen locations 0, 190
x = mouse.x; y=mouse.y;
if ((y > 190) && (x < 200-y)) { /* sawtooth 1*/ }
if ((y > 190) && (x >= 200-y) && (x < 10)) { /*sawtooth 2*/ }
if ((y > 190) && (x >= 10) && (x < 210-y)) { /* sawtooth 3 */ }
Don't they teach algebra in schools these days?