Main Menu

created a match-two puzzle but now stuck with unknown bug

Started by zubin73, July 28, 2010, 06:41:48 AM

0 Members and 1 Guest are viewing this topic.

zubin73

I created this puzzle for my upcoming game where one has to match two similar looking creature who pops out of the holes in the puzzle. It is a time restricted puzzle and the creatures stick out their heads only for few seconds and if the match doesn't happen within their time of appearance then they disappear into their holes. If the player is able to match two similar creatures while they stick their neck out,then the match occurs and their holes disappear from the screen totally.

Well this is the game logic in simple,but I don't know why the time counter is not working as expected.Even when the time is up (the timer shows 0 min 0 sec), nothing happens unlike programmed. Also when all creatures are matched within time, nothing happens. Sometimes the creatures also don't disappear as expected. The puzzle works erratically in spite of checking it so many times. Can someone please point out where is it going wrong? I'm trying to fix it for 4 days and got frustrated unable to figure it out.

Here's the project, you can download and see the eventing,etc- http://www.mediafire.com/file/yw5t8xqgkfei8ex/Project3.zip
Please help me fix this bug, it is driving me insane. :( >:( :'(

A screenshot showing how it looks-


"A thing of beauty is a joy forever" - Keats

Zylos

As far as the timer, I don't see anywhere where you actually have any conditions set for what happens when it's reached ground zero (or less). You have to have a parallel process that has a conditional branch for what you want to have happen. Or am I missing where you've put it?

The player can't actually clear the puzzle right now because you have no variables or anything checking to see if the puzzle has actually been cleared or not. You have it so that you talk to the angel when you've gotten all of them, and the angel will check variable 80, but I don't see anything that actually adds to variable 80 whenever you've matched a pair.

I've noticed that occasionally they don't pop back into the ground. I'm still checking on why that may be, though I think it might be because they're in mid-animation (as in popping back into the ground) when you order them to disappear, and then the event ordering them to go poof is erased before they can respond to it. I'm still looking into how to fix that if it's the case.




zubin73

Hey thanks for taking a look at it. Now answering your questions-

1) There IS a timer that checks when it reaches 0 min 0 sec.It is located almost at the end of the parallel process where the other conditional branches are placed actually.It also checks that whether the player is able to match all the laid out combinations.

2) In that same parallel process,there is a counter for that increments variable 80. The angel checks that.Yes I didn't know how to make the creature events totally disappear,so if you could shed some light on that,I'd be grateful.

3) yes even I've noticed that they occasionally do not go inside the hole when the matching doesn't take place.I hunted every nook and corner of the events but I still can't decide where or why is it going wrong.

I think you couldn't find the parallel event where points 1 and 2 are covered. It's located on the same map towards the lower part. There are the other events being processed in that event so you may find most of your answers there. :)
"A thing of beauty is a joy forever" - Keats

Zylos

Try this on for size. I pretty much just took what you had and simplified it, plus added a switch to reset everything if time runs out.




zubin73

Hey awesome Zylos, it works perfectly now! Can you tell me where I was going wrong just for educative purpose? or what did you do exactly?
"A thing of beauty is a joy forever" - Keats

Zylos

Iunno, but it was overly complex having all of the events processed by another event, so I just tore it apart and told each event to check for itself if its partner was already selected or not. If it is, it adds to the variable count and causes both to pop. If not, it does nothing. I also made sure that it checked this even during the animation of it popping back into the ground, so that it wouldn't get stuck like it did before.




zubin73

Thanks a lot! I tried separately do the eventing for each event but wasn't sure I was going in the right direction. I'll study it to know more.
"A thing of beauty is a joy forever" - Keats