0 Favourites

Self Rotating Ship To Touch Point After Release [SOLVED]

  • Hey, guys.

    Trying to add one last mechanic to the game for now, so far unsuccessfully.

    Basically, after touch, I would like the square (ship) to keep rotating to that angle set by the touch/mouse click.

    So far you have to be In Touch for it to reach that angle.

    Thought it would be more fun if the ship kept rotating on its own after touch to that touch point.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Here:

    edit:

    btw, I noticed you used anglelerp in your example. Yeah I agree it's much smoother than the 'rotate to position' which I used but the concept is the same. Just use anglelerp to the position of the beacon.

  • Wow, thank you. Amazing.

    No idea why this works, but it's great.

    I'll credit you in game!!!

  • Wow, thank you. Amazing.

    No idea why this works, but it's great.

    I'll credit you in game!!!

    btw, I noticed you used anglelerp in your example. Yeah I agree it's much smoother than the 'rotate to position' which I used but the concept is the same. Just use anglelerp to the position of the beacon.

  • That came from Newt, another poster .

    Yeah, the beacons are super useful. I just used them for a zillion other things.

    I think I might not have been able to solve a lot of other challenges without them. I worked out the code for the game years ago in about a month, when I switched to asset creation, but it turned out that code wasn't that great. Or maybe I just got better over the years with the learning. Works great now.

    Someone once said that invisible sprites are the answer to almost everything, but at the time I had no idea it could extend that far.

    The beacons should be some sort of super sticky, if they aren't already.

    Thnx again!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)