Ok thought about another way, this being if I could get the position on
the chess board of the current model clicked then I could move the
vector of the camera to that location, so using something like this to
get the model name:

On beginsprite me
  porigin = point(sprite(spritenum).left,sprite(spritenum).top)
end

On mousedown me
  finpoint = the clickloc - porigin
  modelhit = sprite(spritenum).camera.modelunderloc(finpoint)


I need to know how to get the named models position ????

Anyone ?

-Kev-










Any advances on this ?


On beginsprite me
  porigin = point(sprite(spritenum).left,sprite(spritenum).top)
end

On mousedown me
  finpoint = the clickloc - porigin
  modelhit = sprite(spritenum).camera.modelunderloc(finpoint)
  
  scene.camera[4].translate(finpoint[1],finpoint[2],0,#world)
  put finpoint
  

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kevin Mccarthy
Sent: 11 March 2002 00:28
To: [EMAIL PROTECTED]
Subject: <lingo-l> just a quickie ?

I have my second camera working now ( top view), displayed on my main
view, but wish to move it on the h or v to wherever the mouse is
clicked, I have the parameters, but am not sure of how to get the camera
moving to them, can anyone help ?

Code so far :

Property spritenum, porigin

On beginsprite me
  porigin = point(sprite(spritenum).left,sprite(spritenum).top)
end

On mousedown me
  finpoint = the clickloc - porigin
  modelhit = sprite(spritenum).camera.modelunderloc(finpoint)
  T = transform()
  scene.camera[4].T.(finpoint)
  put finpoint


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to