How do I rotate a sprite without changing the position?

Get help using Construct 2

Post » Sun Mar 26, 2017 12:24 am

I have been attempting to make a VVVVVV-style gravity platformer in Construct 2, but when I rotate my player sprite, the position changes so it is inside of the ground? Thanks in advance for the help! Image
B
4
S
1
Posts: 3
Reputation: 306

Post » Sun Mar 26, 2017 1:05 am

using 'set flipped' instead of set angle might work.

if it doesn't then if you share your capx i'll take a look
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Sun Mar 26, 2017 10:11 am

Message: AlexL29 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Set flipped didn't work. Here's the capx. https://www.dropbox.com/s/dp0jvztbaoi5aec/Jungle%20Platformer.capx?dl=0
B
4
S
1
Posts: 3
Reputation: 306

Post » Sun Mar 26, 2017 6:31 pm

so a couple of options

you can add the condition "is jumping" to the on 'e' 'q' pressed events, that way the sprite will be in the air when it flips.
or
you could change the gravity then add a system wait 0.2ish seconds action and then flip the sprite.
or
you can rotate towards the angle as shown in the .capx ill link to.

https://www.dropbox.com/s/v97op97bdqwgi ... .capx?dl=0
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Mon Mar 27, 2017 11:11 am

Thanks for the help!
B
4
S
1
Posts: 3
Reputation: 306


Return to How do I....?

Who is online

Users browsing this forum: beohs, brunopalermo, Google [Bot] and 10 guests