Damaging Enemies and having them fly back

Get help using Construct 2

Post » Tue Jul 23, 2013 3:14 am

When I hurt a basic enemy, I'd like it to fly back at an arc. I tried applying physics but after hours of tweaking, never got the results I wanted. Whats the best method for doing this?

(Castlevania type game)
B
5
Posts: 17
Reputation: 286

Post » Tue Jul 23, 2013 4:08 am

Check the EaseTween behavior. It's not part of Construct 2, it's a user made behavior. Just search the forums for it.

B
100
S
31
G
11
Posts: 1,552
Reputation: 21,497

Post » Tue Jul 23, 2013 5:36 am

Um...trust me, EaseTween is not the easiest way for such a simple action.

But it depends on how you are moving the enemies in the first place. If you are using the platformer behavior then modify their vector by a value, which would look something like this.

B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Tue Jul 23, 2013 10:06 pm

That didn't seem to work. Here's what I did for the player. Seems to work ok. How could I speed it up?

Well crap, because I'm new I can't post a link.

http://nomadicgamesonline.com/images/myphysics.PNGN0M4D2013-07-23 22:09:50
B
5
Posts: 17
Reputation: 286

Post » Tue Jul 23, 2013 11:50 pm

I'm now trying to figure out how to mirror this. Help would be appreciated.
B
5
Posts: 17
Reputation: 286

Post » Wed Jul 24, 2013 12:48 am

Using LiteTween:

ArcBackSample.capx
ImageImageImage
B
71
S
19
G
179
Posts: 3,478
Reputation: 102,677

Post » Wed Jul 24, 2013 7:11 am

Tried your file. Still not the arc I'm looking for. Try the settings I posted above. It works well. Set all physics to 0 on left panel, then give my event settings a try. I just can't figure out how to mirror it.
B
5
Posts: 17
Reputation: 286


Return to How do I....?

Who is online

Users browsing this forum: BloodFoxStudios, Fenix18, oosyrag, waguilar and 10 guests