Posted By
|
Message
|
infinitum3d
Registered 03/03/2012 22:18:24
Points 66
|
30th March, 2012 at 30/03/2012 22:54:25 -
I'm using the atan2 360 degree rotation for my Player. When he throws out a YoYo (don't ask LOL), I want the rotation to NOT work, until the YoYo recoils back to the player.
I have it set so that when the player throws out the YoYo, Flag 1 is turned ON. When the YoYo recoils back to the player's hand, Flag 1 is turned OFF.
I tried using
Always (AND) Player internal Flag 1 is ON
-Player look at (0,0) from YoYo
But that doesn't work.
Any tips?
Thanks!
n/a
|
infinitum3d
Registered 03/03/2012 22:18:24
Points 66
|
30th March, 2012 at 30/03/2012 23:12:12 -
I'm a doofus. I forgot to remove the atan lines from my ALWAYS event. Duh.
So now it works.
Always
(AND) Player Internal Flag 1 is OFF
..Player Set Angle to atan2 etc, etc...
(and next event)
User Left Click
(AND) Player Internal Flag 1 is OFF
..Player Set Internal Flag 1 to ON
Edited by infinitum3d
n/a
|
infinitum3d
Registered 03/03/2012 22:18:24
Points 66
|
31st March, 2012 at 31/03/2012 01:04:15 -
New question;
Is there an easy way to limit the player to Angles > 270
AND
< 90 ?
90 is straight up, 0 is due right, 270 is straight down. I don't want the player to be able to face left.
I tried setting an ALWAYS (AND) but there isn't a Player Angle in the Event trigger???
Thanks!
Edited by infinitum3d
n/a
|
infinitum3d
Registered 03/03/2012 22:18:24
Points 66
|
2nd April, 2012 at 02/04/2012 14:34:16 -
I found a solution here: http://www.mattesch.info/click/look.mfa
Thanks!
n/a
|
s-m-r Slow-Motion Riot
Registered 04/06/2006
Points 1078
|
2nd April, 2012 at 02/04/2012 17:24:03 -
Sounds like you had a productive weekend. Congrats!
n/a
|
Silveraura God's God
Registered 08/08/2002
Points 6747
|
2nd April, 2012 at 02/04/2012 23:20:58 -
I lol'd.
http://www.facebook.com/truediamondgame
|
|
|