"Express THIS!" Changing a sprite's dimensions

  • On specific keyboard input, I want to change the height or width of a sprite. The action with expression I use is:

    Object | Set width to Object.Width+10

    But even when I've increased the numerical value (I started with 1, then changed it to 10), I don't see any changes in the dimensions of the object. I tried including parentheses around Object.Width but with no success.

    Can someone tell me what I'm missing, please?

    UPDATE: Nevermind....*facepalm* I discovered that I had forgotten I had created variables to control the height and width, and they were being set into motion after my keyboard Events/Actions...overriding any input I gave.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)