Danny769
Joined: 01 Feb 2006 Posts: 55
|
Posted: Sun Apr 30, 2006 11:48 am Post subject: Object Problem |
|
|
How would i unselect the TownCenter by clicking a part of the background, and by clicking on another object
Its a Port of AOE2
| Code: | if ( (TownCenter[1].X+TownCent:width() >= cursorX) and (TownCenter[1].X <= cursorX+cursor:width()) ) then
if ( (TownCenter[1].Y+TownCent:height() >= cursorY) and (TownCenter[1].Y <= cursorY+cursor:height()) ) then
TownCenter[1].Select = 1
end
end |
All it needs to do is make Select = 0 |
|