Very basic animation

0 favourites
  • 7 posts
From the Asset Store
Carousel Animation, make carousel of you image gallery or anything
  • Hello!

    I might have the dumbest question right now, but I just have to know.

    How to I play an animation while pressting the -> arrow. Like when I pres the arrow, the "Walk" animation plays..

    I have done some searching in the forum and other places, but I can't really find it.. Kind of.. :|

    Thank you so much if you help : )

    And, here is the .capx file if you want: dl.dropbox.com/u/10323763/PieGame.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have to add new animations with sprites to the object (right click - edit animations). Then you just use the right action (set animation if I remember correctly) with the on -> pressed event

  • Be sure to check the how do I FAQ section "Animations".

    You have this example :

    et the animation according to a key pressed - LINK

  • IMO There aren't any dumb questions when you're just starting out. It's all in knowing where to look!

    I HIGHLY recommend velojet's Building a Platform game - A beginner's guide. It covers not only animation but other great tips for building a platformer.

    Even though the tutorial teaches what you need, I made a few changes to your project which you can find here:

    PieGameAnim.capx

    I changed the walk animation to make it loop (done in the properties panel when the animation is open in the animation editor.)

    I added several platform events for Sprite11:

    is moving

    X is moving   (that is, is moving inverted)

    is jumping

    is falling

    Then for each of the events I added an action to set the animation for sprite11 to either walk or stay as appropriate. You can add more animations like a jump or a fall animation and use them instead of walk and fall for those cases.

    If you want to add a run animation, then you would check the speed of sprite11. If it is less than a certain amount, set the animation to walk, if more set it to run.

    Also, if your player is going to to be changing directions you need to make other changes to mirror the animation based on a key press. Those might require that you add a keyboard object so that you can test to see whether the left or right arrow key is pressed.

  • Thank you so much!

    I have tried to do the tutorial you linked me to, but I could not find the character. Like I understood it, I have to pay $20 for it? Anyway.

    So if I want to walk the other way, I just have to flip it over. Mirror it?

    A last thing.. I can't open the edited version you send me. I have the free verion. r90 I think. And the error says I need r92 or giher. And I have tried to download and install the setup file from here.. Still same error :S

    -Thanks again.

  • Release 92

    Also I don't think the tutorial is to be paid for.

    And if it is just missing graphics, no big deal, just replace with your own.

    In need, check the other tutorials like : how to make a platform game (a different tutorial than the one kittie linked, but that is valuable as well and should answer the original question too)

  • Thanks!

    But the bundle form the "How to make a Platform game" you get if you buy a lisence... But I can use my own sprites and stuff ;)

    Thanks thanks!

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