rotate an actor only horizontally 180 degrees
shonasen
Member Posts: 40
I have used vectorToAngle(game.Touches.Touch1.X-self.Position.X, game.Touches.Touch1.Y-self.Position.Y ) for rotating my actor on touch ,it rotates 360 but i want only 180 degree rotation. Please help thanks in advance.
Comments
I'm not 100% sure what the question means . . . . ?
But you could just use interpolate, let me make you an example project, back in 1 minute . . .
Here you go . . .
Link: https://www.mediafire.com/?dsmh0wgo0para0m
rule:
if rotation = 180
constrain actor.rotation to 180
EDIT: Socks beat me to it.
@socks i am unable to open ur sample project it gives "unsupported file format,the file is newer than the this version creator".so can u plz give that lines here.
It should also be sufficient to change the "Flip horizontally"-attribute, I guess. I mean, I haven't tried it, but it seems like it might work. Of course, if I understood your question correctly...
video: