Question that can't fit in the title

Get help using Construct 2

Post » Wed Sep 16, 2015 2:11 pm

Again, asking alot today. How can i make a enemy go from moving left and rigth to charge to the rigth against the player? I want my enemy to move left and rigth at first but when it sees the player it moves the rigth against it. The problem is that always moves left and rigth even after it has seen the player and doesn't just move the rigth. I suppose you can use Else in some way but Else doesn't work whit much and i can't figure out how.
B
12
S
2
Posts: 267
Reputation: 1,344

Post » Wed Sep 16, 2015 2:14 pm

I guess setting a boolean when player is withing charging distance and changing the behaviour depending on if the boolean is true should do the trick?
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 Sep 17, 2015 7:10 am

LittleStain wrote:I guess setting a boolean when player is withing charging distance and changing the behaviour depending on if the boolean is true should do the trick?



I suppose i make a false boolean. Then i change it to true on line of sigth of the player. Then i make a instance boolean set as a action and then charge as the action. Too bad it doesn't work whit this so what am i doing wrong?
B
12
S
2
Posts: 267
Reputation: 1,344

Post » Thu Sep 17, 2015 1:49 pm

Without seeing your events I wouldn't know..
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 Sep 17, 2015 7:22 pm

LittleStain wrote:Without seeing your events I wouldn't know..




Please don't comment on my sprites.
Here is my events sheets:


http://postimg.org/image/bqutfwyvn/

http://postimg.org/image/i6fxo3gv5/
B
12
S
2
Posts: 267
Reputation: 1,344


Return to How do I....?

Who is online

Users browsing this forum: Resslx and 27 guests