[HELP!]catch up game mechanics

0 favourites
  • 3 posts
From the Asset Store
Create a boss fight with this easy to follow game pack. Recreate the classic attacks of Mutoid Man from Super Smash TV
  • Hi!

    First post here :3

    I am making a sort of catch up game. But got stuck!

    here is the story of the game to understand my problem:

    Once a good old granny lived in a house in the middle of no where .Her only companion is a fish in a bowl. Once a cat sneaked into the house & took the gold fish!(oh no!bad Kitty!) So granny runs after the cat & tries to catch it & save her gold fish!Granny must catch the cat before it runs out through the window(run granny run!)

    Here,my problems is "stumble upon objects ".The cat keeps running avoiding the obstacles but some times it hits them. How do I write the cat's AI to sometimes randomly stumble upon obstacles on its way?

    And the 2nd one is,I want the cat to go faster if granny slows down by getting hit or falling down.

    Please please Help!

    Thanks in advance! :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Right now, the event which define how the cat avoid obstacles should contain how to avoid them I guess, you should have now something like:

    Condition_to_avoid | Actions_to_avoid

    the idea is simple, we will create a variable, and do this:

    Condition_to_avoid | Set Variable to random(100)

    If Variable<X | Avoid

    Else | Dont_avoid

    X is the percentage chance of the cat to avoid the obstacle

    If you need more information, or don't understand, don't be affraid to ask.

  • IT WORKED! x3

    thank you soo much! <3

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