Velocity attribute change failure

WessexWessex Member Posts: 3
edited June 2014 in Tech Support

Sorry, afraid im stuck on the first hurdle, got the 4 key directions up and running no problem, but for some reason my change attributes for 'UP' and 'LEFT' arrow dont work when i release the arrow key. The actor keeps moving, 'DOWN' and 'RIGHT' work fine and stop moving when i release the key, for the life of me i cant see any difference in the rules.

Any help appreciated, thanks.

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Can you post a screen shot of the rules so we can see them?

  • WessexWessex Member Posts: 3
    edited June 2014

    [IMG]http://i60.tinypic.com/qqtz5e.png[/IMG]
    works

    [IMG]http://i61.tinypic.com/5upgr6.png[/IMG]
    doesnt work

    one each of the x and y's work, one each doesnt

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    For your Up screen shot, the Change Attribute in the otherwise section should be:

    motion.linearVelocity.y instead of motion.linearVelocity.x

  • WessexWessex Member Posts: 3

    Thanks, swapped the left over and it works too, sure i tried that earlier : (

    sorry and thanks for your time!

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @Wessex, no worries. You have to start somewhere! :)

    The thing to get from this is to keep in mind that the X direction/location is left to right and the Y direction/location is top to bottom.

Sign In or Register to comment.