Text, Button and windowsize

Get help using Construct 2

Post » Thu Nov 10, 2011 11:20 am

Hi all,

Sorry if my english isn't the best, but i try hard^^

here my question:

u can create text fields and also buttons.
is there a possibility to insert a image as a background for the text field or can you just overlap Text&Sprite.

also for the button, can you change how the button looks like?

to the windowsize: is there something like get(windwosize) because i want that elements automaticly chose the position and not always put in the exactly X position

thanks for answers

Zerano!
B
2
G
1
Posts: 6
Reputation: 462

Post » Thu Nov 10, 2011 1:16 pm

I guess you insert a sprite and then you say each time the mouse clicks on it the system performs a certain event/action.

This way you can draw your own buttons :)


About the element's position did you try do righ on the X or Y random.X or random.Y
I guess that works :)

I'm a noob as well, so this might not be the best answer LOL
B
18
S
4
G
5
Posts: 149
Reputation: 4,498

Post » Fri Nov 11, 2011 2:22 pm

Hi!

Thx for the reply. I will try it out and post if it was successfull.
Nice to see also newbies like me.

Peace
Zerano
B
2
G
1
Posts: 6
Reputation: 462

Post » Fri Nov 11, 2011 3:10 pm

For the size of the window you have the expression system WindowWidth and WindowHeight.

For the positioning of GUI elements you might check this tutorial with helpful informations.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests