Character facing wong way..

Get help using Construct 2

Post » Thu Aug 16, 2012 7:07 pm

Hey guys!


My platform character is facing the wrong way when in game, and I need some help.
When I'm in the editor, the character sprite is facing right.
But when I run the layout, the character faces left.
I have tried to mirror the sprite when pressing a key, but I failed in the process.

I have searched the forum but no topics match my problem.

Can anybody help me?

Thank you in advance.

~Stereo~Stereo2012-08-16 20:04:31
B
11
S
3
G
2
Posts: 32
Reputation: 2,644

Post » Thu Aug 16, 2012 8:39 pm

first of all the picture of the character has face on left or right??
if right the do this :
event1:
     condition:keyboard: right arrow is down
     action : player : set mirror = not mirrored
event2:
     condition:keyboard:down arrow is down
     action : player : set mirror = mirrored
if your picture of animation is opposite then do the opposite to the events.
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Thu Aug 16, 2012 9:15 pm

The character is facing to the left, but the picture in the editor is to the right.

Here is the .capx: 205.196.122.220/n4wt9w6hfhwg/w6z845bhml204r3/Mirror+Help..capx

Now the character turns correctly at the button pressed, but when I release the right arrow button the picture turns left.

I want it to turn right.Stereo2012-08-16 21:16:56
B
11
S
3
G
2
Posts: 32
Reputation: 2,644

Post » Thu Aug 16, 2012 9:23 pm

link doesn't work... anyway if this happened then try to disable all other events and see if the problem is still happening or not... if it still then try my way for animations :
http://www.scirra.com/tutorials/351/platform-behaviors-animation
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Thu Aug 16, 2012 9:27 pm

I've actually tried that, but I don't want to restart the project. But by the looks of it, I think I have to.

Here's the link: http://www.mediafire.com/?w6z845bhml204r3
B
11
S
3
G
2
Posts: 32
Reputation: 2,644

Post » Thu Aug 16, 2012 10:03 pm

I also played your game "Wizard Life", not bad!
But it needs some tweaking here and there.

Like when your character falls down underneath the level, it dosen't die.
But I bet you allready know that. But if you don't, you can fix it by adding a player event. And click "is outside layout". Then add an action: Player object - Destroy.

Just wanted to let you know.
B
11
S
3
G
2
Posts: 32
Reputation: 2,644

Post » Thu Aug 16, 2012 10:04 pm

You're setting the player mirrored every tick in event 4. That's why he's always facing left. You can get rid of event 3 and 4.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Thu Aug 16, 2012 10:08 pm

Finally, how did I not see that?

Thank you ramones!
B
11
S
3
G
2
Posts: 32
Reputation: 2,644

Post » Fri Aug 17, 2012 12:30 pm

lol i told you try to disable all other events and see if it work or not ... anyway thanks for the comment for the game i have no events to fix it ^^ thats why i'm waiting my award from gamezanga then ill fix it ^^
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Sat Aug 18, 2012 12:22 am

So it's possible to disable an event without deleting it?

Ok, well good luck! :)
B
11
S
3
G
2
Posts: 32
Reputation: 2,644

Next

Return to How do I....?

Who is online

Users browsing this forum: michaelverdi and 15 guests