Ashley Please Auto Mirror Property

Get help using Construct 2

Post » Wed Nov 23, 2011 10:30 am

Hi Ashley,

In my game before Update 69 my Player worked well now it does not turn
correctly because of the "Auto Mirror/Flip" Property Change.

This is what worked well before:

Keyboard|On Left arrow|Player| Set animationPlayer_Stand_Right
        released
                            |
Keyboard| Left arrow| Player    | Set angle to 180 degrees
          is down   | Player    | Set animation Player_Run_Right

Keyboard|On Right arrow |Player|Set animationPlayer_Stand_Right
        released

Keyboard|Right arrow is|Player|Set animationPlayer_Run_Right
        |down


The Player only has a right Stand & Run animation.

Could you please show me how to do the same with the new process.

Many Thanks

B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Wed Nov 23, 2011 10:46 am

Sorry I forgot to state the problem, Player starts of on platform animation right,when left arrow is pressed the player turns left, but under the new upgrade 69 when the right arrow is pressed again he walks backwards and is not mirrored as he should be. tried the Mirrored Action in Player but cannot get the counter action.
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Wed Nov 23, 2011 11:28 am

As stated in the changelog for r69 (useful things to read)

[quote]Instead Sprite now has two actions: 'set mirrored' and 'set flipped' which allow you to control this at any time, rather than tied to the angle. [...] You will need to change your 'set angle' actions that you needed with auto-mirror to 'set mirrored'.[/quote]
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Nov 23, 2011 12:48 pm

Read every word of the changelog and tried set mirrored before posting message. It worked for Right To Left, but not back again from Left to Right, Player walked backward. !!.
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Wed Nov 23, 2011 1:39 pm

In your event "Right arrow is down" (or pressed)
.. Sprite set Not mirrored
.. Sprite simulate control right

demo capxKyatric2011-11-23 13:41:36
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Nov 23, 2011 5:26 pm

Many thanks Kyatric, I failed to see the dropdown box with "Not mirrored".
in it.

The demo was great
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Post » Tue Dec 20, 2011 1:12 am

Yes, very helpful advice and demo capx, Kyatric. Thanks!

Just wondered why you added:

.. Sprite simulate control right/left

Don't you get this automatically for the arrow keys with Platform behavior?
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Tue Dec 20, 2011 5:41 am

@Velojet: Indeed.
Well there was some trouble previously when using yes or no on "Default controls" that was fixed in a recent release.

Or maybe just I was in the zone/used to do so and added it. I can't really remember, to be honest.

As you noticed, it is not an obligation to use the simulate functions in that specific case.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Dec 23, 2011 7:07 pm

Thanks for your clarification, Kyatric. May you stay in the zone!

Joyeux Nel !
B
105
S
20
G
12
Posts: 549
Reputation: 20,320


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests