Snap to Angle for Sprite rotations

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
User avatar
Jegar
Ultimate 001 Member
 
Joined: Fri Aug 15, 2008 11:49 pm
Location: Midwest U.S.

Snap to Angle for Sprite rotations

Postby Jegar » Fri Mar 31, 2017 6:46 pm

Hello all,

I am curious if anyone has found a way to have a sprite that is set to Graphics to rotate with direction to snap to cardinals angles or to snap to angles without using the scripting. I try to rotate using the dial but it is not accurate in many cases, with a directly upward angle being slightly off of the expected result angle.
Image
Image

User avatar
Mr.Numbers
001 Support
 
Joined: Wed Feb 28, 2007 1:50 am
Location: Alberta, Canada

Re: Snap to Angle for Sprite rotations

Postby Mr.Numbers » Fri Mar 31, 2017 11:13 pm

You can hold shift, this snaps to every... 15 degrees or so I think?
Image
I AM THE ALL MIGHTY SCRIPTING MASTER
Please do not PM me with Engine 001 related questions, rather post on the forums. ;)

User avatar
Jegar
Ultimate 001 Member
 
Joined: Fri Aug 15, 2008 11:49 pm
Location: Midwest U.S.

Re: Snap to Angle for Sprite rotations

Postby Jegar » Sat Apr 01, 2017 9:08 am

Your a life saver, that is exactly what I needed.
Image
Image

User avatar
Mr.Numbers
001 Support
 
Joined: Wed Feb 28, 2007 1:50 am
Location: Alberta, Canada

Re: Snap to Angle for Sprite rotations

Postby Mr.Numbers » Sun Apr 02, 2017 3:17 am

FYI This works for basically ALL direction pickers in the engine that use the circle thing, or the portrait thing.
Image
I AM THE ALL MIGHTY SCRIPTING MASTER
Please do not PM me with Engine 001 related questions, rather post on the forums. ;)


Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users

cron