{Unsolved} Strange Request Please read

Get help using Construct 2

Post » Sat Dec 19, 2015 2:14 am

Hi,
This is a strange request/question, but how would i see what event happens first? I need a event like

On Tap>
Wait for Signal for X Seconds
After X Seconds If "Signal" has not been received then> Create object

I Know that is a little strange. Any Ideas?

Much Appreciated,
IanHarlow
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Sat Dec 19, 2015 2:42 am

I would use timer behaviour for that..

on tap
> start timer

on timer
> create object

**on event that would send the signal
> stop timer
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 » Sun Dec 27, 2015 10:20 pm

@Littlestain Sorry for the very late response,I have not had internet.

How would i make the "Wait for signal" action into a "On signal created" condition?

Sorry for the late response
IanHarlow
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Sun Dec 27, 2015 10:28 pm

If you have a "wait for signal" action, you must have a "system send signal" action somewhere, right..
instead af that action make an action to stop the timer..
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 Dec 28, 2015 12:52 pm

Oh I Understand!

Thank you! Much appreciated

Ian
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Tue Jan 05, 2016 6:26 pm

@LittleStain Would there be a more efficient way to do this, i have around 16 objects that would need different timers. i am using it as a cooldown for weapons.
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Tue Jan 05, 2016 8:17 pm

Is it possible in your case to use a function and family?
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 » Tue Jan 05, 2016 9:05 pm

@littlestain I Do not think so because 8 of the 16 have different timers they need to go off at

For example this is what i want to happen..

User touches a power up, if the user does not touch the screen again in X seconds the powerup is unselected.

Some powerups cool down is 2 seconds other 20 seconds.
i dont think functions and families would work, will it?
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Post » Tue Jan 05, 2016 9:20 pm

I guess it would work perfectly..
Give the family an instance variable cooldowntime (this can be different for each instance)

om family powerup touched
> start timer for powerup.cooldowntime seconds..
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 » Wed Jan 06, 2016 2:06 am

@Littlestain Im sorry i don't quite understand. could you maybe leave a .capx or a detailed explanation of the events?

I am not good with instance variables.

Thanks for your time!
B
23
S
7
G
1
Posts: 90
Reputation: 2,070

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests