Page 1 of 1

A little problem

PostPosted: Sat Jul 17, 2010 9:47 am
by tzoli
I have a problem...I want to my SWAT figure rotate in position of mouse.
If te mouse is left(from the figure) te figure watch left...I have figures :D
I don't know C programing...I'm Web Programer...

Re: A little problem

PostPosted: Sat Jul 17, 2010 11:32 am
by tzoli
Idea?

Re: A little problem

PostPosted: Sat Jul 17, 2010 11:53 am
by Hblade
there is a way, but I forgot how. Theres many things you can use for rotation. First off you might want to use the sprite rotator which I forgot who thats also by xD

Re: A little problem

PostPosted: Sat Jul 17, 2010 1:14 pm
by tzoli
Isn't a script for this?
I thin for one but incorrect :( :
if (xmouse = -){
//...
}

Re: A little problem

PostPosted: Sat Jul 17, 2010 2:51 pm
by tzoli
I have a good code :D
For x:
Code: Select all
Sam.textNumber = xmouse;
    if (xmouse < 325){
ChangeTransparency("Test", 1.000000);
               }
                   if (325 < xmouse){
ChangeTransparency("Test", 0.000000);
                                    }

For y:
Code: Select all
                                        if (ymouse < 325){
ChangeTransparency("a", 1.000000);
               }
                   if (325 < ymouse){
ChangeTransparency("a", 0.000000);
                                    }