Cool Pivot Dragging Help ?

iamcarteziamcartez Houston, TexasMember Posts: 648

Without making three constrained sensors, is it possible to make an actor that can be rotated when you drag the left or right sides but also moved when you touch the center?


Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2015

    There's a demo for this out there somewhere. I'll try to find it but it may take some time...

    Edit: found it!

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2015

    @tatiang said:
    There's a demo for this out there somewhere. I'll try to find it but it may take some time...

    Edit: found it!

    I think that demo is overcomplicating a fairly simple task, instead you could just use . . .

    When magnitude > whatever you want
    Constrain rotation to vector to angle (self to mouse)
    Otherwise constrain x to mouse x and y to mouse y.

    I'll test it out . . . hold on, back in a moment . . .

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2015

    Here you go, a simpler version . . . . (attached)

  • iamcarteziamcartez Houston, TexasMember Posts: 648

    Awesome thanks!!!! I was searching incorrectly but...

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2015

    @iamcartez said:
    Awesome thanks!!!! I was searching incorrectly but...

    P.S . . . your illustrations in your initial post - describing what it was you were trying to achieve - were as useful as they were rare, I wish everyone took the time time to clearly communicate their ideas as you have in this thread.

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    @Socks said:
    P.S . . . your illustrations in your initial post - describing what it was you were trying to achieve - were as useful as they were rare, I wish everyone took the time time to clearly communicate their ideas as you have in this thread.

    +1

Sign In or Register to comment.