Okay so I have an object I need to rotate with an offset. I just need to pin the rotation spot at the top and do a simple change of angle around that point. Say move it to 20degs and stop. I'd like to use the rotate to angle behavior. @Socks@RThurman
@Lost_Oasis_Games, afraid I can't offer much help, I'm just writing to say I'm so excited to see that I'm not the only one who needs help with math at times!
Hop on Skype Dave, I have something I made that might help, but I didn't polish up enough to want to post it on the forums just yet. I'm popping out for a few minutes but will be around most of the afternoon.
Constrain the X position to A *cos( self.Rotation )+BX
Constrain the Y position to A *sin ( self.Rotation )+BY
Rotate to Angle / 20° (relative to actor)
A = radius of the circle, BX and BY are the position for the pivot within the scene.
When you place the circle in the scene, point it downwards (-90°)
Here is an automated version, just place the red pivot point where you want in relation to the actor (or move the actor around in relation to the pivot point) and the rotation is worked out for you.
Comments
@Lost_Oasis_Games, afraid I can't offer much help, I'm just writing to say I'm so excited to see that I'm not the only one who needs help with math at times!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
It's obvious, Dave.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Hop on Skype Dave, I have something I made that might help, but I didn't polish up enough to want to post it on the forums just yet. I'm popping out for a few minutes but will be around most of the afternoon.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Constrain the X position to A *cos( self.Rotation )+BX
Constrain the Y position to A *sin ( self.Rotation )+BY
Rotate to Angle / 20° (relative to actor)
A = radius of the circle, BX and BY are the position for the pivot within the scene.
When you place the circle in the scene, point it downwards (-90°)
Example project:
Here is an automated version, just place the red pivot point where you want in relation to the actor (or move the actor around in relation to the pivot point) and the rotation is worked out for you.
Here is yet another way:
http://forums.gamesalad.com/discussion/comment/468609/#Comment_468609
@Socks just posted pretty much exactly what I was going to offer, so along with @RThurman's alternative method you look well covered now
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Well. Don't even try my method guys. I just found out it didn't work.
...
:P
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Ultimately it does @Braydon_SFX , it puts the onus on the user to rotate their phone.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@Hopscotch
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Thanks guys going to try it out now. I totally suck at vector math.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS