Tomoaky Puzzle Battle - VX > VX Ace Conversion

Tomoaky Puzzle Battle VX Ace
Version: 1.03​
Author: Tomoaky (original VX script) / AMoonlessNight (VX Ace conversion)​
Date: 17 Oct 2020​
Latest: 19 Dec 2020​

About
This script is a port of a VX script by Tomoaky that recreates a falling block puzzle (based on the game Puyo Puyo). ​
​
Blocks fall in groups of two and can be rotated clockwise or counter-clockwise. Group blocks in clusters of four to destroy them. You lose when the fall count reaches zero (solo mode, if set) or the blocks touch the ceiling. You win by clearing all of the blocks, or your opponent losing (CPU mode).​
​
You can either play solo mode or against the CPU. When playing against the CPU, if you destroy a cluster of blocks, you'll send a group of obstacle blocks onto the opponent's screen.​

Instructions
Details in the script in the demo. The demo has some graphics that will need to be put into your project as well.​

Screenshots
Spoiler
screenshot.png

Script

See the demo below.​

Demo

Terms of Use
As according to Tomoaky's original terms and conditions (website is down, link is via Wayback Machine). Also:​
  • Please credit Tomoaky, the creator of the VX script, and AMoonlessNight or A-Moonless-Night for this conversion
  • Free for non-commercial use; no commercial use
  • If you would like to edit/adjust this script, please make edits as a new script (do not edit this script directly) and provide proper credit
  • I'd love to see your game if you end up using one of my scripts
Update Log
17/10/2020 - script created​
23/10/2020 - portraits now show above falling blocks, portrait X pos fixed​
19/12/2020 - added neutral game end message for solo mode​
​
Girl, you're lust awesome like I already told you. :LZSjoy: Thanks a lot for taking on my request!! I already did some test plays and the result is fantastic. I love this!
@Tw0Face No worries!
While playing, I got a random stack error with no further information. Game remains open buts stays freezed. Had to use Task Manager to get it closed.

Unbenannt.png
Hmm, I'll look into it. Was it in the demo project? And do you remember what you did before the error popped up?
Yes, it was in the demo project. Cannot remember exactly what I did before the error occured. Just that I had a quite fast paced match against the AI.

This is what is written in error_log.txt:
Cache:106: stack level too deep, SystemStackError

Maybe it has something to do with it.

EDIT: Found some minor issues that occur if the player either wins or loses.

1. There's an offset at the enemy graphics, which is not shown in place.
2. Blocks appear above the border and victory/defeat-text

Unbenannt.png
Cool, I'll do a bit of digging and figure out what the issue is. The other problems should be easy enough to solve.
Cool, I'll do a bit of digging and figure out what the issue is. The other problems should be easy enough to solve.

Hell yeah! Nice, thanks.
@A-Moonless-Night Mind giving me a hint how to solve the offset-problem and how to have the character-busts, as soon as the game ends, appear over all? Changed nearly every number that's written in the script but it turns out to be pure guessing. xD
The script has been updated to fix the portrait X and Z pos issues. You can now add a neutral game end message when the player finishes a solo mode game.
file saved here if needed.
file saved here if needed.
Thank you for the help!! 😅
Sorry fam, I got rid of my Dropbox subscription a while back and clean forgot about all the scripts and things on there. :uswt: Link should be back up for this one now.
This is really good! Though I do have one issue. I made it so my game plays at 640 by 480, and it makes the puzzle window too small?
Captura de ecrã 2025-08-15 184055.png


Is there a way to make it bigger or at least center it?
And also, This is a silly question, but is there a way to remove all the fade ins? Since my game goes for a more 1980s computer game style, all the pieces and the window fading in and out can be a bit jarring.
other than that, fantastic script!
Is there any way you could make it so that difficulty is adjusted with the CPU? I would like to use this for a game, but I don't want to make it immensely difficult for my players.

Original thread: https://forums.rpgmakerweb.com/threads/tomoaky-puzzle-battle-vx-vx-ace-conversion.128810/