How do I set frame +1

0 favourites
  • 10 posts
From the Asset Store
three fully animated characters ideal for your RPG side scroller projects
  • how to i :

    mouse | on left button clicked on RightArrow | sprite | set animation frame to +1

    for every left button click on LefftArrow , sprite change frame +1

    vista vesta on leftarrow.. sprite change frame -1

  • you have the way in your post

    Event

    On Left/right click

    Action

    set animation frame TO Whateversprite.andimationframe+1

    Event

    On right/left click

    Action

    set animation frame TO Whateversprite.andimationframe-1

  • ah ty alot

    and one more think.. can be when frame is end the frame begin from start again(loop)? when left mouse still left click ?

    cause now when button left and the sprite have 5 frame the animation frame stop at 5.. can begin again from start?

  • Edit the sprite. On the left of the main window is the Animation properties panel. You'll see "Loop" there. Set it to Yes.

  • not work :/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe use Compare frame = 5 Set frame to 0

  • Edit the sprite. On the left of the main window is the Animation properties panel. You'll see "Loop" there. Set it to Yes.

    not work :/

    It's supposed to work.

  • everything everyone has said work but they all do different things because you have not been clear on what you want you keep saying you want different things so if you just explain exactly what you want to happen and then we can help you

  • loop does work for me... here the capx

    Compare frame = 0

    loop yes

    1.. exacly : for every each Right Arrow pressed ...the sprite frame go 0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5 etc

    2.. now for every each right arrow pressed .... the sprite go 0.1.2.3.4.5 and stop

    i need the example 1

  • Use a modulo when "going up".

    Use a check when "going down".

    See the attached capx made in r179, link at the bottom of the page.

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