Opening of a crack

Hello !

I have a little problem. I'm trying to do the opening of a crack during an earthquake. 

To do this, i use 2 event (one for the bottom andone for the top of the crack) with 3 tabs, and each tab has the image of one state of the crack. 

Actually, i use as condition for these events a variable, and i decrement this variable each time i want the crack to open more.

But it don't work as i want, because if my variable is -1 for example, it's bigger than -2 andi have the 2 events at once : it's not showing what i want.

I know it's possible to do this with switch as condition, but i would like to avoid using 3 switch just for a crack (i can't use local switch because there is 2 events that need to change at the same time)

Any ideas ?
Could you post a screenshot of your event just to make things more clear? It could help a lot.
Page conditions are read from the last page first. If those conditions are met then it uses that page, otherwise it moves on to the one before it. So if your pages are var>-1, var>-2, var>-3, etc. then var>-1 should be on the last page of the event.
Page conditions are read from the last page first. If those conditions are met then it uses that page, otherwise it moves on to the one before it. So if your pages are var>-1, var>-2, var>-3, etc. then var>-1 should be on the last page of the event.
Thanks a lot ! That was that. It works perfectly now =)

Original thread: https://forums.rpgmakerweb.com/threads/opening-of-a-crack.50178/