Random movement and change image

kajutokajuto Member Posts: 314
edited November -1 in Working with GS (Mac)
Hi everyone I made a game with a character move random for the image of the actor alway look at me , for example if I want to make the actor when he move left then change the image to look left like 3D perperctive? Even I know gamesalad doesn't have a 3d

Help

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    youll need to have 4 images of the character for moving left, moving right, moveing up, and moving down.

    then have rules as so:

    when attirubte self motion linear velocity x > 0
    -change image to moving right image

    when attirubte self motion linear velocity x <0
    - change image to moving left image

    when attribute self motion linear velocity y > 0
    -change image to moving up image

    when attrubte self motion linear velocity y < 0
    - change image to moving down image

    you can also get away with just 2 rules by using otherwise, but i figured this would be easier for you to understand

    cheers
Sign In or Register to comment.