Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
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...
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
Develop games in your browser. Powerful, performant & highly capable.
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"