# [HELP!]catch up game mechanics

Get help using Construct 2

### » Sat Apr 27, 2013 6:31 pm

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.

Thanks in advance! :)
B
2
Posts: 7
Reputation: 166

### » Sat Apr 27, 2013 8:20 pm

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.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
23
G
18
Posts: 2,123
Reputation: 17,200

### » Mon Apr 29, 2013 7:16 pm

IT WORKED! x3
thank you soo much! <3
B
2
Posts: 7
Reputation: 166