A little problem

Non-platform specific questions.

A little problem

Postby tzoli » Sat Jul 17, 2010 9:47 am

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...
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score

Re: A little problem

Postby tzoli » Sat Jul 17, 2010 11:32 am

Idea?
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score

Re: A little problem

Postby Hblade » Sat Jul 17, 2010 11:53 am

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: A little problem

Postby tzoli » Sat Jul 17, 2010 1:14 pm

Isn't a script for this?
I thin for one but incorrect :( :
if (xmouse = -){
//...
}
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score

Re: A little problem

Postby tzoli » Sat Jul 17, 2010 2:51 pm

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);
                                    }
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron