GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In game button feedback

cbatescbates Posts: 4Member, PRO

Throughout building my first game I have come to the realization that my buttons (while they do work :) ), feel flat. So I sent about building in some feed back such as:

When touch is released --> perform button actions

<Grow / Shrink Rules>
When touch is pressed --> Increase width & Height by 10
When touch is released --> Reduce width and height by 10

in order to get that "Larger while pressed" look.

However this doesn't work is the user slides the touch off the button before releasing, the button just stays size +10.

What is everyone's favorite way to go about building visual feedback into button?

Comments

  • tatiangtatiang Posts: 11,642Member, Sous Chef, PRO, Senior Sous-Chef

    When touch is pressed --> Increase width & Height by 10
    Otherwise --> Reduce width and height by 10

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • cbatescbates Posts: 4Member, PRO

    @tatiang said:
    When touch is pressed --> Increase width & Height by 10
    Otherwise --> Reduce width and height by 10

    Could it really be that simple lol.

    So for this to work properly, I would have to start the button 10x10 larger than it's resting size should be, correct?

  • tatiangtatiang Posts: 11,642Member, Sous Chef, PRO, Senior Sous-Chef

    @cbates said:
    So for this to work properly, I would have to start the button 10x10 larger than it's resting size should be, correct?

    Ah, I see what you mean. Here, I made you a demo (attached).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.