Alternative controls for 8-way animated character

0 favourites
  • 7 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • <img src="http://img832.imageshack.us/img832/5927/r9sf.jpg" border="0" />

    I made the Keyboard event into "Or" blocks and added WASD and IJKL controls, but when I tested it out, the player doesn't move.

  • Hey nickkname

    you need to do simulate constrol aswel.

    like this

    <img src="http://i.imgur.com/tci0beo.png" border="0" />

  • Hey nickkname

    you need to do simulate constrol aswel.

    like this

    <img src="http://i.imgur.com/tci0beo.png" border="0" />

    I made a new event with simulated controls. My character goes to new animation frames - when I press W for Up, he becomes the WalkUp frame - but I can't move my character.

    So I made the simulated controls a subevent under the keyboard controls, but my character could neither change frames or move.

  • Make sure the object's properties, the "Default Controls" is set to "NO"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Make sure the object's properties, the "Default Controls" is set to "NO"

    I set default controls to No. I tried the alternative controls again - new keyboard events instead of subevents. My character moves, but doesn't change animation frames.

  • //Example 1//

    Key Down "Up" >

    Simulate Up

    Set Animation to "up"

    //Example 2//

    Key Down "Up" >

    Simulate up

    Set direction "up"

    if direction="up">

    Set animation "up"

    -----

    If that doesn't work then you have something wrong and need to post a CAPX for us to see what exactly is messing up

  • //Example 1//

    Key Down "Up" >

    Simulate Up

    Set Animation to "up"

    //Example 2//

    Key Down "Up" >

    Simulate up

    Set direction "up"

    if direction="up">

    Set animation "up"

    -----

    If that doesn't work then you have something wrong and need to post a CAPX for us to see what exactly is messing up

    That worked, thanks everyone :)

    <img src="http://img14.imageshack.us/img14/9053/gauo.jpg" border="0" />

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