kncuser's Forum Posts

  • I have a two-part question here.

    First, I've created a series of resizable buttons using 9 patch objects. It seemed to be the most efficient way to create the shapes using a single artwork file, and though I could create such a thing with CSS, the built-in Construct 3 CSS functions for buttons appear to be very limited.

    That said, when a user's mouse rolled over these objects, I want them to scale up, but unlike sprites, 9 patch objects apparently don't have a scale function at all. I have tried setting both size and position by pixels, but this seems horribly inefficient.

    That's question 1: Is there a better or more accepted way to accomplish this?

    As for my second question - I also want to layer a sprite image over these 9-patch objects, and scale them at the same time. Far as I know, I can't group these objects either. I figured I'd throw this in, as this future addition could alter the outcome of my first question.

    Following is a screenshot of the layout and respective event sheet:

    Thank you!

    -Kurt

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads