Pause feature on mobile

Get help using Construct 2

Post » Mon Oct 21, 2013 10:16 am

Recently i have some problems with implementing this feature
I have read the tutorials on the pause game on the site but it didn't help me.
the issue is like this:

i have a button which responds to a touch event, which need to be on cool down because the button get pressed more the 1 time when you press it
so i deiced to use the Cooldown plugin by rexrainbow.
On the call event which triggered on the touch of the button i use the Pause plugin by rexrainbow which sets the time scale to 0, which results to the game paused but in the same time the touch events on the button are not responding because of the cooldown which uses the time scale.

Any suggestions?
check out my other projects on my portfolio website : http://madebyjacob.com
B
22
S
6
G
2
Posts: 26
Reputation: 2,020

Post » Mon Oct 21, 2013 10:32 am

I'm not familiar with the plugins, but without them it could be easily achieved with this event:

button on touched : set timescale to -timescale+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 » Mon Oct 21, 2013 9:50 pm

@LittleStain Thnx, but the problem is with the button that get press to many times when you touch it
check out my other projects on my portfolio website : http://madebyjacob.com
B
22
S
6
G
2
Posts: 26
Reputation: 2,020

Post » Mon Oct 21, 2013 11:54 pm

When I use on object touched I only get one event. Are you sure you are using on touched instead of touching?
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Tue Oct 22, 2013 8:27 pm

@BluePhaze thnx, that was the problem, didn't even noticed :)
check out my other projects on my portfolio website : http://madebyjacob.com
B
22
S
6
G
2
Posts: 26
Reputation: 2,020

Post » Wed Oct 23, 2013 6:42 am

@xXxForsakenxXx No Problem, glad to be of assistance!
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583


Return to How do I....?

Who is online

Users browsing this forum: richcoz81, Yahoo [Bot] and 32 guests