PDA

View Full Version : Moving according to coordinates ?


Leon
05-31-2002, 02:34 PM
Hello,

( see attached .fla )

I would like the instance 'circle' to move to A2, B1, B2... when the user types the coordinates in the input box. Would you have an idea on the way to proceed and the code to add ?

Thank you for your help,

Leon

PS : using flash mx...

sfa
05-31-2002, 03:24 PM
Do you intend to eventually expand the grid because depending on how scalable you want the code to be it will be different.

SFA

Leon
05-31-2002, 04:14 PM
Yes, I'd like the grid to be expandable. I suppose that in this case the targets would be each intersection... and not x and y points.

Thanks,

Leon

Billy T
06-01-2002, 03:47 AM
ok here's a start

I couldn't for the life of me get the letter part of the co-ordinate to work so you have to just use numbers...

anyway..hope it helps

cheers

Leon
06-02-2002, 08:45 AM
Hello,

Thanks your script helps me a lot.

I started reading "Action Script..." by Moock but still haven't got the level to answer those
questions ( cf grid script ) :

A/ The movement of the "smiling" circle is limited to 9/9. Could it be extended ? ( would it therefore need
two input fields ? )

B/ I would like the input to work with a "Go" button and not directly as it does for the moment.

C/ I imagined that when the circle reaches certain coordinates ( let's say 5/5 ) 'something' would
happen ( example : an image would appear ). Do you know how I could do this ?

Thank you for your help and patience,

Leon

Billy T
06-02-2002, 05:47 PM
here's one with a go button

the other stuff is trickier and it's way past my bedtime

I'll have a think about it tomorrow

cheers

Leon
06-04-2002, 06:56 PM
Hello,

"Billy T" thanks for this improvement.
I hope you or someone else will have the time to help me out with questions 'A' and 'C'...

Another question : has anyone ever seen a 'Go' game made in Flash ?
( More information on this game on
http://panda-igs.joyjoy.net/English/contents.html
and http://gobase.org ).

Leon

PS : a Go game is not what I am trying to do...