Simulate movement using Platformer Behaviour

This forum is currently in read-only mode.
From the Asset Store
10 Retro songs ideal for platformers or farming games
  • Heey guise!

    When using the platformer behaviour, how would one make the Sprite with this behaviour walk left/right on it's own?

    Want to make multiple enemies that share the platformer physics and just haven't been able to find a way to simulate left/right being pressed in the behaviour.

    Thanks in advance!

  • wtf

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • really, what the <img src="smileys/smiley35.gif" border="0">

  • Pecek

    I think Jase00 is asking for platformer AI help as opposed to just "how can I make a player sprite move using the directional keys?" If that is the case then I understand from a Construct beginner programmer point of view. I cannot help as of yet as I have not tried my hand at moving AI's yet myself. Stationary turret AI's, yes; moving AI's, not yet especially on platformers, assuming it would be much more difficult than simply adjusting a sprite's angle and moving it towards player in a top-down game.

  • Jase00

    First you need to not move with the keyboard movement:

    + System: Start of layout

    -> Sprite: Start ignoring user input

    Second to make the sprite move on it's own you need to use the "set x component of motion" action of the platform behavior. Use positive values to move the enemy right, negative to move left.

  • Pecek

    ? D: I'm terrible at explaining, so I guess you misunderstood me. I know how AI works, platforming works, keyboard and controls and stuff works, BUT I was try to figure out how to make a behaviour with platform movement move on it's own (WITHOUT PLAYER INPUT). If I made a custom platformer movement, I wouldn't need to ask this question :P But I'm using platformer behaviour because it's collision detection is awesome (From what I'm experiencing :P)

    aznmonkeyboy

    Sometimes it's pretty easy to make Platforming AI, but when it involves a lot of pathfinding, it can be really agrivating. >.< I suppose it's similar with top-down games in a way XD

    R0J0hound

    Awesome, I'll try that out. Never touched that action, I'll fiddle with it :P Thank you!

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