forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Object Problem

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Danny769



Joined: 01 Feb 2006
Posts: 55

PostPosted: Sun Apr 30, 2006 11:48 am    Post subject: Object Problem Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group