Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
on mouseUp
if within(grc "Polygon", the clickLoc) then
answer the clickLoc
end if
end mouseUp
thing is it seems to be using the rectangle border of the shape rather than the inside are of the polygon shape. Did something change? what am i doing wrong
The enclosing rect of an irregular object does not trigger a "mouseUp" message, even if grouped. Simon has answered another aspect of this issue, but that solution is for the interior. Can you send off your stack?
Was wondering if i could use livecode to build games like something like this http://www.adventuregamestudio.co.uk/
i might be biting off more than i can chew
One of my degrees is actually in animation so the graphics wouldnt be too much of a problem. what i would find tricky which AGS has programmed into it is if i you started a character at the top of a U shaped bounding area that when you click the top of the other top of the U that the "characters movement would be to move down across then back up rather than point A to point B and avoid obstacles. Obviously a lot of work went into building the AGS engine so i know it would be a tough thing.
not follow a path. if i have an item to move from point A to point B but i have lets say a rectangle inbetween the points it would have to walk around the rectangle and not take a straight line
Hi Da_Elf,
The path does not have to be straight. Go ahead and use the freehand polygon tool and draw any line you want.
Now if you are talking about the avatar(?) recognizing that there may or may not be a block in front of it then there is more programming.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!