[SOLVED] Flipping Enemies Around

Get help using Construct 2

Post » Thu Dec 22, 2011 6:29 pm

I'm working on some basic AI for enemies.

Basically the enemy moves straight then hits a hidden trigger that causes it to stop and walk the opposite way.

But I'm having an issue where when it hits it flips the sprite upside down.

Here is the .capx for the issue.

http://db.tt/IfLbJxzLInf3rnal2011-12-22 19:27:36
B
22
S
92
G
7
Posts: 7
Reputation: 13,532

Post » Thu Dec 22, 2011 6:38 pm

Event 3 => enemy1 set angle 180.
Remove this and change for enemy1.set mirrored

This method (changing the angle) is obsolete since r69.Kyatric2011-12-22 18:39:25
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 » Thu Dec 22, 2011 6:43 pm

Thanks for the help!

That worked but now they don't move the opposite way.

Here it is with changes.
http://dl.dropbox.com/u/614379/tests/ai2/index.html

I can't seem to get it to move the opposite way and flip the sprite. It's only one or the other. Inf3rnal2011-12-22 18:44:24
B
22
S
92
G
7
Posts: 7
Reputation: 13,532

Post » Thu Dec 22, 2011 6:44 pm

Try this:

Weishaupt2011-12-22 18:45:10
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Thu Dec 22, 2011 6:50 pm

That worked! Thank you! :3

Though according to Kyatric using Set Angle is depreciated.

Is there a way to do that with out using depreciated ways?

Updated link with Weishaupt solution:
http://dl.dropbox.com/u/614379/tests/ai2/index.htmlInf3rnal2011-12-22 18:50:45
B
22
S
92
G
7
Posts: 7
Reputation: 13,532

Post » Thu Dec 22, 2011 7:57 pm

Use the action set mirrored/ set not mirrored, not flip.

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


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests