How To Knockback Player And Enemies ???

Get help using Construct 2

Post » Fri Jun 05, 2015 12:08 pm

Hi
What i am trying to do here is i want the player to go back a little bit while shooting to make a knockback effect
as will as the enemies i want them to go back a little bit when the bullet hit them
i think it's now clear to all
keep in mind this is a top-down action game so the player and the enemies might be in the top,down,left or right
and NOT just left and right like most platform games
is that possible ???
because i searched google and i didn't really find anything useful
if anyone knows how to do that please tell me how
B
7
Posts: 17
Reputation: 323

Post » Sat Jun 06, 2015 12:12 am

First you need to compare the player or enemy direction : if facing up for example : Set Y to self.y+2...
facing right : Set X to self.x-2...
Etc...
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sat Jun 06, 2015 5:59 am

And how can i know the enemy or the player direction ???
B
7
Posts: 17
Reputation: 323


Return to How do I....?

Who is online

Users browsing this forum: charliesan763, JaredX and 10 guests