How do do NOT flip ?

Get help using Construct 2

Post » Thu Dec 04, 2014 9:57 pm

Hi guys, I am attaching a file. U can see a plane flyng ( arrows ). The strange thing that I want to avoid is this :
As soon I fly and change direction ( first left than suddenly right ) without using up and down arrow, my plane first flipps, and after half second it re-flips to the right position. It works only correctly if I ude right-left or left right when the plane is NOT moving. Than it works fine. It only does not work immediatelly if my plane is moving.

Can U solv the problem ???


thanks guys
You do not have the required permissions to view the files attached to this post.
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Fri Dec 05, 2014 1:35 am

I'm not fully certain on the intended result, but try this:

If System Sprite.8Direction.VectorX < 0, then Set Flipped
If System Sprite.8Direction.VectorX >=0, then Set Not Flipped

Be sure to remove your flips on the keyboard presses.

It'll check the direction the sprite is moving, left or right, and flip based on that.
B
6
S
2
Posts: 21
Reputation: 494

Post » Fri Dec 05, 2014 6:17 am

sorry, as beginner I did not see System Sprite.8Direction.VectorX option...could U attch me a capx ???

thanks a lot
B
37
S
16
G
2
Posts: 447
Reputation: 4,865

Post » Fri Dec 05, 2014 12:16 pm

can somebody help me ...thats really important :/
B
37
S
16
G
2
Posts: 447
Reputation: 4,865


Return to How do I....?

Who is online

Users browsing this forum: khelaghor and 33 guests