How do I move a Sprite without changing it's angle

Just started using Construct 2? Post your questions here

Post » Thu Apr 14, 2016 3:25 pm

Hello, I have a touch screen game I am developing for Android. I probably have an easy question to answer!

I can tap on the screen and my sprite will move towards the coordinates. I'm currently using SetAngleTowards.
The sprite has bullet behaviour so it will move towards the tapped co-ordinates.

I don't want the sprite to 'rotate' as moves around the screen, it is obviously spinning around at the moment (because the angle is being changed when I tap). I want the sprite to stay at the same orientation always.

Seems like I need some sort of MoveTowards command that doesn't affect the rotation/angle of the sprite.

What's an easy way of making the sprite stay in a fixed rotation point as it moves around the screen? I thought about doing it in animation frames, but seems like a big hassle. There must be an easier way.

Thanks in advance.
Posts: 5
Reputation: 185

Post » Thu Apr 14, 2016 3:54 pm

You can make a invisible box, and assign the bullet behavior to that.

Then assign "pin" behavior to the image, but only pin it in "position"

that way it will always face upright while moving via the bullet behaviour
Posts: 1,012
Reputation: 18,607

Post » Thu Apr 14, 2016 3:55 pm

Got you, of course. Thanks for the quick reply! :)
Posts: 5
Reputation: 185

Return to Beginner's Questions

Who is online

Users browsing this forum: RevampedSpider and 0 guests