Dialog Boxes

Get help using Construct 2

Post » Sun Jan 15, 2012 5:04 pm

Probably its a noob question, but I need some help. Id like to make a warning system like bellow

If a variable <= a value
create a dialog box (a sprite with a message)
press in a button in a dialog box
the dialog box dissapear

Can help me guys ?



"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Post » Sun Jan 15, 2012 5:12 pm

If you have a sprite and hide it or set in visible, then you can either set its x and y position.

Or simply use the system.CreateObject event. And spawn one :)
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sun Jan 15, 2012 5:13 pm

Oh also there is actually a third party plugin to create dialog boxes. Found here: http://www.scirra.com/forum/plugin-dialog-box_topic46991.html

but if you use third party plugins you cannot upload to the scirra arcade.
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sun Jan 15, 2012 5:15 pm

Thanx for the tip !!!

Helps me a lot !
"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Post » Sun Jan 15, 2012 5:20 pm

Or you use the BROWSER Object and just create an Alert
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sun Jan 15, 2012 5:34 pm

Wishaupt,

Can you give a tipo for it ?

Thx
"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Post » Sun Jan 15, 2012 5:34 pm

sorry "tip"

Thx again
"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Post » Sun Jan 15, 2012 5:35 pm

Add the browser object, Then with your compare event, add a action. Browser.alert. Simple's
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sun Jan 15, 2012 5:36 pm

The plugin allows for more custom things to be done. Like adding input, Or if user pressed ok in comparison to cancel.
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sun Jan 15, 2012 5:51 pm

Thx again guys !!!
"keep calm we have giant robots!"
B
21
S
5
G
4
Posts: 94
Reputation: 3,155

Next

Return to How do I....?

Who is online

Users browsing this forum: suicidenutella, Vallar and 0 guests