impulse direction on object

Get help using Construct 2

Post » Sat Jun 29, 2013 6:35 pm

hi there ,my first post here

for starting, im quite new to construct and programming, but im falling in love with it.

i have searched quite extensively on the forums for something similar, but have come up short, so my last resort is to post.

on to the question at hand,

im making a platformer, and my character has a melee attack
i want that attack to affect an object with impulse depending on the direction im facing, similar to knock back but with physics

as of now im able to apply impulse on the object, but it only goes one direction independently if im at its right or left.

i saw someone sayng this, but i cant seem to figure out how to add it

[QUOTE=EncryptedCow]

When the knock back happens check the players X position against the enemies X position. If players X is less than enemies X do the knock back from the bottom right of player. If the enemies X is less than players X then do the knock back from bottom left of player.[/QUOTE]

any help is appriciated
B
3
Posts: 3
Reputation: 181

Return to How do I....?

Who is online

Users browsing this forum: NN81, norman74, PreacH, XMatrix and 10 guests