prof.cheesy's Forum Posts

  • 1 posts
  • When I was making my game, I wanted to make the zombie knock backwards when it was hit. It took me almost 2 hours, but I now know how to do it, and I want to tell anyone who need it how to do it! The enemy will need custom, and make sure there is a boolean called Is_Attack that is used to make the zombie move. Here is the code: (The Image did not load, so i had to remake it with words.)

    (Event)Weapon Is overlapping Enemy:

    (Event Condition) Mouse Left Clicks:

    (Action) Accelerate Custom toward angle: at acceleration 1, enemy.angle+180

    (Next Action) Set variable Is_Attack False

    (Next Action) Stop MoveTo or (whatever move behavior is used)

    (Next Action) Wait 1 second

    (Next Action) Stop custom

    (Next Action) Set variable Is_Attack True

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1 posts