flip and mirror

Get help using Construct 2

Post » Fri Jun 29, 2012 1:57 am

ok , i don't know how to start the topic first i can't continue working on my project (waiting the new release) so i'm working in the newer one that i posted before (four gravities)and i found a problem that i couldn't find a way to fix it :(

so the problem is when i click z it should go to the opposite side but in same direction of face for example if my player looking on right side and clicked z it will look in the right side even in the left side of course same on up,down , i have tried some stuffs and fixed only when he look in the right or up and i couldn't fix when he look in the down or left sides


here is .capx (v3):
https://dl.dropbox.com/u/67034121/scirra%20construct2/four%20gravity%20v3.capx


so in other words if you didn't understand (if i click z he must keep facing in his direction before i clicked but of course while im travelling i can move and it will change the direction as normal i want it while im not moving.
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Fri Jun 29, 2012 4:34 am

I did a quick test and found that, for event 17, get rid of player:Set flipped and add the sub-event player:Is flipped->Set Not flipped, Else player->Set flipped. This toggles the flipped state, rather than setting to a fixed value.
ImageImageImage
B
67
S
19
G
124
Posts: 3,214
Reputation: 74,415

Post » Fri Jun 29, 2012 4:42 am

thanks worked fine , i also fixed it with some global variables ill post them both in the example topic ^^


thanks again :)
B
48
S
15
G
6
Posts: 795
Reputation: 12,035


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 25 guests