[HELP!]catch up game mechanics

Get help using Construct 2

Post » Sat Apr 27, 2013 6:31 pm

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! :)
Posts: 7
Reputation: 166

Post » 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.

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
Posts: 2,046
Reputation: 14,689

Post » Mon Apr 29, 2013 7:16 pm

thank you soo much! <3
Posts: 7
Reputation: 166

Return to How do I....?

Who is online

Users browsing this forum: iceangel, mindragon73, yurinkab and 19 guests