How do I change button style?

0 favourites
  • 9 posts
From the Asset Store
9 orchestral + 9 alternate chiptune-style arrangements of dynamic, RPG-style music for your media project.
  • Hello. I found answer here, but not quite

    I found that if I put the set style in every tick, it use a lot of cpu. otherwise, it goes back to original style when I resize the window. I wonder if there is someway to set it once and for all.

    Thanks!

  • Why use the button when you can just draw a sprite to look however you want it to and use the touch or click behavior to make it work just like button? The buttons and textboxes, etc... don't always work the same on all platforms anyway (android, ios, etc...) so using sprites gives you much more flexibility and stability.

  • because I am not a designer and don't know how to draw.

    Besides, how do I set text on a sprite? If I need all different words, it will kill me to draw so many...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Found my solution! I need to set the auto font size to false!!!!!!!!!!!!!!

  • YOu have a text object that you can set text to. You then pin that to a sprite button. Normal Buttons don't look right in games. It doesn't match the graphics of the game and stands out like a sore thumb. You may want to look at http://www.kenney.nl/assets for their buttons, etc... as they are free as far as I know. Or you can have their whole collection of graphics for use in any game for a small donation. You may also want to look into the sprite font object if you are going to have text in your games. Putting actual text makes the game stutter and drops the framerate so you want to use sprite fonts instead.

  • Thank you so much, well definitely try that!

  • Hey, how would I make it so that when you touch the text box or the sprite it works like a button... incredibly lost here

  • There is also the great Sprite Button Behavior Plugin. It adds easy functionality to custom buttons. https://www.scirra.com/forum/viewtopic.php?t=88607&start=0

  • You add the touch or mouse objects to your game, then you use them for example:

    Touch - On Object (spriteButton) Touched > System GoToLayout "Layout1"

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