CleverName81's Recent Forum Activity

  • Try something like this

    On melee attack hit

    .. set enemy animation frame to enemy.animationframe+1

    so i've tried that and it doesn't seem to work. what i have going is the enemy has a walking animation that stops when the player gets close (event:Sprite-->Platform On Stopped-->action:Sprite-->Stop animation

                                       -->action:Sprite-->Set anim. frame to 4)

    after he stops, i want the player to hit him three times with each hit advancing one frame of animation to show the damage he's taken.

    i've named the damage animation 'collapse' so i tried this:

    (action:Sprite-->Set frame to (Sprite.Collapse.frame+1)%Sprite.Collapse.Animationframecount)

    but that doesn't seem to work. not that i know why it would, i don't really know what i'm doing obviously. haha.

    thanks anyway for your help.

  • okay, so i am building a pretty straight-forward platformer and i am having trouble assigning a certain behavior to one of my enemies.

    i want the player's melee attack against the enemy to advance a separate animation for the enemy by one frame for each collision.

    it seems like it shouldn't be as difficult to implement as i am making it. anyone have any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've been wanting to build my own games for some time now and have felt intimidated by the amount of programming languages i would have to learn/teach myself. However, after picking up the basics of Construct 2 i am so excited to start creating my own games and i can't thank the team here enough for creating such an inviting and user-friendly interface. Every new capability i learn within this program opens up so many creative possibilities. I can't wait to start telling/sharing my own stories. Thank you!

CleverName81's avatar

CleverName81

Member since 6 Mar, 2013

None one is following CleverName81 yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies