Note:  Dragging pieces is quite heavy for the browser, and it causes lag, but it works fine on PC.

How to use:

  • Create a new renpy game
  • Add the files from the zip into the game folder
  • Run the game

Adding it to your main project is pretty much the same, just skip script.rpy and follow the example provided in the other .rpy file to call the game.

The code works on renpy 7.x and with a small change it can run on renpy 8.x as well. If you need help or have questions, contact me on discord: Kia#6810, as long as it only takes few minutes of my work time, I'll try to help you free of charge.

Purchase

Buy Now$30.00 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $30 USD. You will get access to the following files:

simple puzzle.zip 291 kB

Comments

Log in with itch.io to leave a comment.

Hello ... I have this error :

I'm sorry, but an uncaught exception occurred.

While running game code:

  File "game/puzzle/puzzle.rpy", line 164, in script

    call screen puzzle(puzzle_cat)

  File "renpy/common/000statements.rpy", line 609, in execute_call_screen

    store._return = renpy.call_screen(name, *args, **kwargs)

  File "renpy/common/00action_other.rpy", line 578, in __call__

    rv = self.callable(*self.args, **self.kwargs)

  File "game/puzzle/puzzle.rpy", line 52, in init

    for c in range(columns):

TypeError: 'float' object cannot be interpreted as an integer

Must be the renpy version, I wrote this one for renpy 7.x , to run it on 8.x few lines must be changed.
This specific error happens when we divide something.
contact me on discord: kiaazad and I'll help you fix them.

Hello,

 yes, that's probably it.

I've corrected the code by adding this:

"columns = int(columns)

for c in range(columns)"

It works.

I have another question, where can I change the size to use the script on a 1280x720 game?

Thanks for your feedback

It should fit a 720 screen if you scale down the images. You can make the text smaller by searching `size` and changing the number too.
If I remember correctly, the puzzle takes a size parameter for piece size, that you can fiddle with to get the best result.