[SOLVED] Change animations on key

0 favourites
  • 7 posts
From the Asset Store
Simplistic hyper-casual game with nature elements. Tap to switch between the 4 elements and reach a better score.
  • Hey guys, sorry if this has been asked before, tried the search to no avail. Anyways, this should hopefully be an easy fix to a newb question.

    Im playing with the tank assets at the moment, ive set an animation called Up, Down, Left and right (leaving diagonals out for the time being).

    Now I've set 8 direction movement as a behavior and am now trying to use the event sheet in order to change the animation depending on the key thats been pressed. I went about doing it like so:

    Keyboard > On right arrow pressed > Tank > Set animation to "Right"

    and then the exact same for left but with right instead. Nothing seems to be happening though, it just keeps on its default right direction no matter which key im holding or have pressed. Im sure im overlooking something so thank you for reading this and hopefully showing me where ive gone wrong.

  • Please send the CAPX, but a maybe you forgot to activate LOOP? (Rightclick on your sprite -> edit animations -> in the menu on the left on the top there is "LOOP")

    Cheers

  • Strangely enough... its working now... I changed the name to have capitals on the animation names and the code names just to make it clean for sharing to troubleshoot.. also messed with play from current frame. Launched it and it ran...

    I feel like a bit of an idiot now, wonder what happend for that to work?

    Is there a way to delete posts? Else a moderator can lock this. I may edit my post if i find out what happend on the odd chance it does to anyone else.

  • You can go to the top of the topic and change the "TOPIC OPTIONS" there you can rename it in "[SOLVED] Animation Keys". But don't feel like an idiot .. you don't want to know how many things I couldn't do and suddenly they worked xD

    Cheers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Please send the CAPX, but a maybe you forgot to activate LOOP? (Rightclick on your sprite -> edit animations -> in the menu on the left on the top there is "LOOP")

    Where is this option? This i don't see.

  • <img src="http://dl.dropbox.com/u/36472942/construct/forumhelp/Looping_check.png" border="0" />

  • um... There is it in construct 3 not construct 2

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