adding animation to ducking???

Hipster_Owl_StudiosHipster_Owl_Studios Member, PRO Posts: 214
edited November -1 in Working with GS (Mac)
so i made my charecter duck now im trying to add animation pretty much a drawing of my charecter ducking so how can i add when my charecter ducks switch to this drawing idk if i made much sense but i hope this helps u understand. thanks!

Comments

  • NexusGameStudioNexusGameStudio Member Posts: 265
    Pretty simple actually

    When you apply the behavior "when (lets assume keyboard) is down" add the animation behavior and put in the frames of your character ducking.

    [Character Actor]

    >When (keyboard) is (down)

    >Animation
    ->frame 1, frame 2, frame 3 (or however many frames of animation you made for the ducking sequence)
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Make sure you change the self.size attribute (see firemaples ducking games demo)

    If you dont it will just stretch the smaller image to the same size as the main one.
    Or if it is transparent above your collision could be all off.

    If you want to keep it simple (its sounds like you just one one picture) you could just use the one pic you have.

    Rule
    when down key is pressed
    change image to ducked.png
    OTHERWISE
    change image to main.png
Sign In or Register to comment.