Dialog Box

Get help using Construct 2

Post » Fri Jul 26, 2013 12:22 pm

Guys anyone knows how to make a pop up Dialog box (to resume my game)
if my phone sleep in 5 seconds then when im click it to power button to on.

my game are automatically to start not resume (pop up).

I dont know what is the key(browser,touch) or plugin .
are the best uses.

im using cocoonjs.

Sorry for my english
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Fri Jul 26, 2013 2:56 pm

Add new object: Browser

Add event: On suspended
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Tue Jul 30, 2013 2:01 pm

California i cant see the event "On Suspended"
pls give me the exatly formula thank u
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Tue Jul 30, 2013 2:04 pm

@jhonnel09: In the browser plugin
Condition [quote]On suspended
On resumed
Triggered when the page's visibility changes, or when a mobile app is going in to the background or foreground. When invisible or in the background the app is suspended: all events stop running and all audio is muted.[/quote]
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
267
S
95
G
66
Posts: 7,215
Reputation: 73,096

Post » Tue Jul 30, 2013 2:20 pm

kyatric promise i dont know what is the exatly formula.
thank u
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Tue Jul 30, 2013 2:26 pm

pls show me any screenshot or capx
B
5
S
2
G
3
Posts: 53
Reputation: 2,468

Post » Tue Jul 30, 2013 3:14 pm

Add the browser object to your project and try something like this:

Make an event
Browser on suspended - set timescale to 0 - make your dialog box visible
Dialog box on clicked - set invisible - set timescale to 1

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Aug 01, 2013 2:38 am

tnx LittleStain

B
5
S
2
G
3
Posts: 53
Reputation: 2,468


Return to How do I....?

Who is online

Users browsing this forum: dmrev, DutovLoppa, Google [Bot], kototouchdown, Mr G, newt, OddConfection and 9 guests