Using "set mirrored" with Spriter ojects

Get help using Construct 2

Post » Thu Dec 19, 2013 6:42 pm

It's impossible for a number to be less than 90 and more than 270 at the same time. That's where the issue lies.

make the event an or statement and it will work.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Dec 19, 2013 6:59 pm

Excuse my ignorance but how do I make it an or statement? Also, I updated that capx with a Spriter file that won't show up at all. Not sure what's up with that. Thanks!
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Thu Dec 19, 2013 7:03 pm

Rightclick on an event -> Make "OR" block
B
18
S
5
G
1
Posts: 74
Reputation: 2,672

Post » Thu Dec 19, 2013 7:11 pm

Thank you. I'm getting closer. They are now mostly turning right.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Thu Dec 19, 2013 7:19 pm

You shouldn't make the whole block an or block, create a subevent and put the angle checks in it and set that block to or.

The first condition should still always be true, so only the second and third (about the angle) should be or
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Dec 19, 2013 7:41 pm

Here's what I have for the event sheet. They are switching right, now, except for if the mutant zombie is in their upper left quadrant, in which case they turn away from him.

Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Thu Dec 19, 2013 7:44 pm

BTW - Thanks LittleStain and JJList.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Thu Dec 19, 2013 10:32 pm

@LittleStain, based on that last screenshot, can you tell why they flip the wrong way when heading towards the zombie when it's in their upper left quadrant?
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Fri Dec 20, 2013 3:57 pm

I still haven't figured this out yet. Getting closer.
Image
B
20
S
4
Posts: 382
Reputation: 2,974

Post » Fri Dec 20, 2013 5:53 pm

@Brashmonkey @JJList @LittleStain I figured it out. I just had to get specific with my angles and use the "is between values" condition. The < 90 and > 270 just wasn't enough. Thanks for help along the way!

Image
B
20
S
4
Posts: 382
Reputation: 2,974

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: DharmaOne, Google [Bot], Yahoo [Bot] and 8 guests