Boss Movement AI (With Pictures)

0 favourites
  • 5 posts
From the Asset Store
500 monsters and creatures images for card games - Set 1
  • 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).

    <img src="" border="0" />

    <img src="" border="0" />

    Thanks in advanced for any help!

  • 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.

  • Thank you so much!

    -so much math or lerp (i have to read up on that) O__O -

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • It's not a hyjack I very much agree. A path system would be perfect

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)