RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
created a match-two puzzle but now stuck with unknown bug

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 82
There is no end to learning!
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

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
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.




**
Rep: +0/-0Level 82
There is no end to learning!
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

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
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.




**
Rep: +0/-0Level 82
There is no end to learning!
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

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
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.




**
Rep: +0/-0Level 82
There is no end to learning!
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