Button vs Sprite vs ... ?

0 favourites
  • 7 posts
From the Asset Store
Side-Scrolling Game "Vikings VS Skeletons" with complete Source-Code (.c3p) + HTML5 Exported.
  • Hello

    What is the better way?

    Use C2 buttons (maybe with adjusting CSS) or use own Sprites as buttons?

    I know, with Sprites it is easier to adjust their look and feel.

    But is there also another reason to use button or sprites? Maybe the different kinds of devices and browsers?

    If you use Sprites. Do you create them yourself (how, with which tool) or do you download them (where)?

    Thanks for your hints.

    PS: Sorry for my english, isn't my mothertounge.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello

    I try to ask in other words.

    When you use Buttons and when you use Sprites as buttons?

    Is there a reason to use buttons anymore?

    Thanks

  • Buttons come with already set actions to function as a button. Sprite you would have to do it yourself. Some people make the button invisible and place it over the sprite to have access to the button features.

  • Button is a DOM object, and you can't be guaranteed the appearance between browser's. Some browsers may have different CSS objectives for their visual look.

    Sprite as a Button is traditional game programming and will always be the same among all browsers.

    If your doing the UI for a game. Use Sprite. If your doing an APP use DOM/Button. You should use DOM objects sparingly in a game if you do. If your doing some kind of web game where canvas is segregated from game play. then you could do a UI borders and embed them in a div.

    Also DOM is another layer. So every DOM object requires a DOM/DIV layer rendered in between canvas renderings. On Some browsers this can slow your games performance.

  • I prefer Sprites, css style I found was inconsistent, especially if your making the buttons global.

    Try http://dabuttonfactory.com/ , its free.

  • sizcoz Nice share.

  • Thanks for your replies.

    It will helps me.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)