Boss Movement AI (With Pictures)

Get help using Construct 2

Post » Sat Jul 28, 2012 10:50 pm

Hi, I am working on a boss for Super Ubi Land and it's a simple boss overall but I am wondering how I make sprites move around the screen and follow certain path movements.

A 'Swoop' movement for the boss-
Basically I'm wanting the boss to be able to swoop down in a 'U' shape and turn around to do it again.

During that time the player can jump on the platforms to avoid being hit and hit the boss. and if the boss is hit, the boss will stop the 'u' pattern and fly off screen for a little while. Then come back to do it again (or even another pattern).





Thanks in advanced for any help!
Image
B
57
S
14
G
6
Posts: 493
Reputation: 11,253

Post » Sun Jul 29, 2012 2:18 am

Here's how to do curved movement using quadratic interpolation simplified by the lerp expression:

QuadraticInterpolation.capx (r99)

I'm sure you can handle the rest of his movement yourself. You just need to move him off screen (with for example linear interpolation) and back to one of the positions, then set the move variable to 1 or 2 when you want him to curve again.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Jul 29, 2012 3:06 am

Thank you so much!
-so much math or lerp (i have to read up on that) O__O -
Image
B
57
S
14
G
6
Posts: 493
Reputation: 11,253

Post » Fri Aug 10, 2012 11:10 pm

We need a Path tool. Or a follow path feature where we can plot points and decide if it's curved or straight, if there can be a pause at the nodes or not etc. I found GM and MMF2's path systems to be very helpfully and quick indeed.
It would be a great help to get a lot of things of this nature done much quicker with C2 if it had this feature IMHO.
Boss follows paths, enemy follow paths, power ups, platforms, level elements.

Sorry for the slight hijack. Your game looks awesome.
B
19
S
3
G
4
Posts: 79
Reputation: 3,711

Post » Fri Aug 10, 2012 11:54 pm

It's not a hyjack I very much agree. A path system would be perfect
Image
B
57
S
14
G
6
Posts: 493
Reputation: 11,253


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 27 guests