How do I (This work? RESOLVED)

Get help using Construct 2

Post » Wed Jun 18, 2014 12:12 pm

Staff because it does not work?

When it happens (nota_do = Sound) the system works, but when (nota_do ≠ Sound) the system does not work.

if.png


Can anyone help?

Rony Sueliton
You do not have the required permissions to view the files attached to this post.
Last edited by Rony Sueliton on Wed Jun 18, 2014 2:38 pm, edited 1 time in total.
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Wed Jun 18, 2014 12:35 pm

Because nota_do = sound is a condition, so you can only left click mouse button on nota_do if it equals sound. If it doesn't then nothing happens. Use sub event and Else

I suggest you read the manual and learn how events work.
You should really spend some time getting the basics down, do the example games etc.
You do not have the required permissions to view the files attached to this post.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Wed Jun 18, 2014 12:46 pm

this way the button is pressed before the sound plays.

but I want to happen after the click to play the sound.

Thanks for the help, someone else can help?
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Wed Jun 18, 2014 2:29 pm

@DUTOIT, managed to solve the problem, thanks for the ELSE.
But I implemented a function to the button not to be triggered as soon as it pressed.
I did the following: put below else, a comparison of Sound ≠ 0.

The application is now with full functionality.

Thank you very much.
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Wed Jun 18, 2014 2:39 pm

;)
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests