How do I get a sprite to respond to simulate control

  • So I have a platformer sprite that I am trying to have move based on a and d. However it is not responding to it and now everything that has to do with a keyboard input no longer works. How can I fix this?

  • Pretty much impossible to assist without seeing what you've done with events.

  • Pretty much impossible to assist without seeing what you've done with events.

    Okay here is what I have

    + Keyboard: On Z pressed

    -> Sprite3: Spawn Sprite6 on layer -1 (image point 1)

    ----+ Sprite3: Is mirrored

    -----> Sprite6: Set angle to 180 degrees

    + Keyboard: On A released

    -> Sprite3: Stop animation

    -> Sprite3: Set animation frame to 0

    + Keyboard: On D released

    -> Sprite3: Stop animation

    -> Sprite3: Set animation frame to 0

    + Keyboard: On A pressed

    -> Sprite3: Simulate Platform pressing Left

    -> Sprite3: Set animation to "LeftWalking" (play from beginning)

    -> Sprite3: Start animation from beginning

    -> Sprite3: Set Mirrored

    + Keyboard: On D pressed

    -> Sprite3: Simulate Platform pressing Right

    -> Sprite3: Set animation to "RightWalking" (play from beginning)

    -> Sprite3: Start animation from beginning

    -> Sprite3: Set Not mirrored

  • Was it ever working? You probably need to use if A or D 'is down' to simulate the platform behaviour.

  • Was it ever working? You probably need to use if A or D 'is down' to simulate the platform behaviour.

    It used to work when it was using the arrow keys as control and not a and d. It also used to have an attack with z that doesn't work now either. It doesn't work with the a or d is "down" either.

  • You must be disabling keyboard or platform behaviour with other events, post a link to the game file or a screenshot of all of your events then it's easier to troubleshoot.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You must be disabling keyboard or platform behaviour with other events, post a link to the game file or a screenshot of all of your events then it's easier to troubleshoot.

    Okay here it is,

    drive.google.com/open ... u2MocWucee

  • You must be disabling keyboard or platform behaviour with other events, post a link to the game file or a screenshot of all of your events then it's easier to troubleshoot.

    Nevermind I found the problem, thank you for trying to help me.

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