Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Easy 5★. I’m aware this is alpha stage, but it’s already very solid.

I noticed that mouse enter will only fire if the cursor moved, but mouse exit works fine if the Picture is moved away.
There are some good reasons it’s implemented this way by default, but an equivalent option to “Event Touch” would be cool to have (for avoidance QTEs).

Something else I’m missing is the option to attach a sound effect directly. I know that’s possible through JS, but is less convenient without the picker. I’d understand if you think that’d make it too cluttered, though.

A technical suggestion: I think it would make sense to call ImageManager.loadPicture for the alternative images as part of the Attach Command and Sprite_Picture.prototype.initialize, to make sure the bitmap change doesn’t flicker or lag.

Lastly, a question: Would you mind if I treat cgmz_altImages and the cgmz_…Pressed properties as public API?
One of my plugins causes Game_Pictures’ names to vary, so I’m thinking I may absorb the alt images configuration and inject the values contextually based on hovered/pressed state on my side.
I can always check the object shape a bit more thoroughly if you think you may change this is the future, though.

(+1)

Hi, thanks for the review 😁

You can access cgmz_altImages or other properties this plugin adds to pictures in your plugins, although you should first detect if the user has this plugin installed.

Thanks for the sound effect suggestion, that should be fairly easy to add for an on click / etc. parameter.

Thanks, that was fairly straightforward.
I ended up making it optional (OFF by default) since the integration is only needed when both plugins are used on the same Picture.

I made sure to first check in CGMZ.Versions and added a warning (to nudge me about it) if there’s a version mismatch.