Movement AI

Get help using Construct 2

Post » Fri Jul 12, 2013 8:09 pm

Hello, wanted to know how can make my enemy jump where and when I want ... as can guide my AI
B
11
S
4
G
1
Posts: 410
Reputation: 2,752

Post » Fri Jul 12, 2013 10:29 pm

wow err . i think you want to know how you can make your enemy sprite moving automaticly huh ?
there is a template for this in construct 2 try this :)
B
27
S
7
G
3
Posts: 299
Reputation: 4,551

Post » Sat Jul 13, 2013 12:20 am

I put little invisible marker sprites on the ground where I want them to jump. It's an easy solution instead of programming jump detection.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467

Post » Sat Jul 13, 2013 12:58 pm

Can you explain better? CapX there any?

it is called the template?
B
11
S
4
G
1
Posts: 410
Reputation: 2,752

Post » Sat Jul 13, 2013 5:14 pm

The code would read like this:
"If enemy is overlapping jumper, then enemy jumps."

Just make a sprite called jumper and put them on your map. If you want to make the jumping feel random or spontaneous as a dodge, you can put chance based jumpers.
"if random(0, 100) is greater than 50 and enemy is overlapping jumper, then enemy jumps" will only make half of the enemies that collide with the jumper jump.
B
10
S
3
G
3
Posts: 234
Reputation: 3,467


Return to How do I....?

Who is online

Users browsing this forum: Carlafnt, imhotep22, mekonbekon, Monkin8r, rollyzz, scitana, Silviu and 8 guests