Flying Platform Enemies?

0 favourites
  • 10 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • Okay so Im not totally understanding how to make a platform enemy fly. I have a bat Enemy but I cant seem to get him to fly , thats what Im having difficulties with currently, could someone shine some light on this for me? How to go about doing it. Thanks !

  • Is the bat using platform behavior or did you mean it's a bat in a platformer type of game?

    If using platform behavior, take note of your gravity, if it doesn't float, try gravity = 0 first.

    Note that platform objects will still fall even if no gravity (free fall) unless platform behavior is disabled.

    You can also use other behaviors for flying, like bullet behavior (which also has a gravity parameter).

    You can adjust the gravity if you want the bats to fall down to the ground (if you are supposed to hit them in your game).

    Not enough info like how you coded the fly (so I can't know why it doesn't work), how your game works, etc.

  • If I was making a bat enemy I would just have a plain sprite, add a bullet behavior so it moves to one side, then a sine behavior so it floats up and down (as bats should). Then either spawn the guy as the player approaches or activate the bullet movement as the player approaches.

  • You can also set in the bullet properties for it bounce off objects for a quick and easy patrolling enemy.

  • I didnt even think of the bullet option duh! But I do have one question would there be a way to mirror the sprite so when it hits a solid it flips and goes the other way?

  • Is the "Set Angle" of bat set to yes?

    If the bats are just moving horizontally, I would suggest setting it to No so you have more control on the appearance of the bats.

    Can't you just use "on collision" or "overlapping" then "bounce off" and "set mirrored" ?

    If you want to mirror it when facing left and not mirrored when facing right, you can use that (being mirrored or not) as condition for hitting against a solid to decide whether to mirror after bouncing or not.

  • Okay Im using Spriter so I just put the scml file into spriter and it makes the sprite, Im having a hard time trying to find "on collision" because it seems spriter has different options? unless Im missing something

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yea I found it, the spriter object itself doesnt have that option, I had to make a invisible box to get that

  • You either used another trigger condition (with green arrow) or you used trigger once. trigger conditions will disappear from selection if you already have another trigger condition in your event.

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