PRoblem with Mirroring

Get help using Construct 2

Post » Sun Apr 28, 2013 9:28 pm

Hi, Im kinda new to construct, and I have a dilema.

My question is, Is there any way to make the player sprite mirror, other than the one showed in the begginers tutorials? Cause that one used the keyboard object, like, if left arrow is pressed, mirror player sprite, but I want the sprite to Mirror and Unmirror regardless the controls, because if I map the direction keys to WASD, I have to change the entire conditions to mirror the player. Is there any way?
B
8
S
2
Posts: 20
Reputation: 1,114

Post » Sun Apr 28, 2013 10:48 pm

[QUOTE=josiascaignard] Hi, Im kinda new to construct, and I have a dilema.

My question is, Is there any way to make the player sprite mirror, other than the one showed in the begginers tutorials? Cause that one used the keyboard object, like, if left arrow is pressed, mirror player sprite, but I want the sprite to Mirror and Unmirror regardless the controls, because if I map the direction keys to WASD, I have to change the entire conditions to mirror the player. Is there any way? [/QUOTE]

Not sure I get the idea, but, you can mirror a sprite with the condition of your choice, after, you have to unmirror it, again, with the conditions of your choice, this condition isn't user input only

exemples of conditions:

If Variable < 0
mouse button is down: Left
etc

Not sure to see the exact problem
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,087
Reputation: 15,341

Post » Mon Apr 29, 2013 12:17 am

Not 100% sure where the dilema is, you can add the mirror event to any condition to suit your need, but for a keymap it would just involve changing the input key..

you could also use "OR", if you want both? keys to work


>left arrow is pressed
OR                        ....Mirror sprite
A is pressed

setting it to the angle of your player is another option

>player angle = 180...mirror sprite Pixel perfick2013-04-29 00:17:59
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Mon Apr 29, 2013 5:17 am

mmmm, didn't know about the or, thanks, that solved the problem. But I have another Question, is there a way to set an animation over another, Example, I have an animation that swings the arm and shoot a ball (the ball is an object apart, with bullet behavior) but if I'm running, and press the button to throw the ball, the player keeps just running, but throws the ball.
B
8
S
2
Posts: 20
Reputation: 1,114


Return to How do I....?

Who is online

Users browsing this forum: Draconinho, YoHoho and 19 guests