enemy follow player !!

Get help using Construct 2

Post » Sat Dec 31, 2016 4:44 pm

Hi
how do i re-create the same movement without using array ?
is there any method rather than this one ??
any help will be highly appreciated

thanx

Demo
www.dropbox.com/s/m6nnynmvxwmu7yt/following.capx?dl=0
B
8
S
4
G
2
Posts: 11
Reputation: 1,722

Post » Sat Dec 31, 2016 9:39 pm

any suggestions PLEASE
B
8
S
4
G
2
Posts: 11
Reputation: 1,722

Post » Sun Jan 01, 2017 12:21 am

still waiting guys !!!!
B
8
S
4
G
2
Posts: 11
Reputation: 1,722

Post » Sun Jan 01, 2017 6:26 am

any help ????
B
8
S
4
G
2
Posts: 11
Reputation: 1,722

Post » Sun Jan 01, 2017 7:15 am

i can't believe this , almost 50 people but no HELP !!
B
8
S
4
G
2
Posts: 11
Reputation: 1,722

Post » Sun Jan 01, 2017 7:15 am

I wouldn't make a habit out of spamming the forums, especially on new years eve haha :D What's wrong with that method?
B
47
S
17
G
81
Posts: 2,230
Reputation: 48,107

Post » Sun Jan 01, 2017 7:19 am

i just looking for something easier , with simple mode , for implementation in my project , array makes some annoying damage to the project
B
8
S
4
G
2
Posts: 11
Reputation: 1,722

Post » Sun Jan 01, 2017 7:32 am

Although it's a little messy in that capx the array is probably the best way to store the positions that the enemy is going to move to. This way you can just store where the player has moved easily and then every few seconds have the enemy move into the same positions.
B
47
S
17
G
81
Posts: 2,230
Reputation: 48,107

Post » Sun Jan 01, 2017 8:18 pm

Using an array is probably the best solution for smooth motion. I guess you could use a wait too. like every time you move the player add a wait then move the enemy by the same amount.

partial example:

on left pressed
--- player: set x to self.x-64
--- wait 1 second
--- enemy: set x to self.x-64
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779


Return to How do I....?

Who is online

Users browsing this forum: tioazis and 15 guests