EVENTS AND CONDITIONS

Discussion and feedback on Construct 2

Post » Sat Apr 29, 2017 3:57 pm

SOMEONE CAN EXPLAIN ME WHAT IS THE DIFFERENCE BETWEEN EVENTS, SUB-EVENTS AND CONDITIONS?
AND WHEN SHOULD I USE ONE OR OTHER?
IS THERE ANY TOPIC OR VIDEO ABOUT IT?

Sorry about
B
7
Posts: 6
Reputation: 296

Post » Sat Apr 29, 2017 4:24 pm

Please turn caps lock off.

All of this is explained in the manual. What is it exactly you don't understand?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,422
Reputation: 59,530

Post » Sat Apr 29, 2017 4:25 pm

A condition is like asking the computer if some scenario exists.

for example: does 1 = 1? ; is a character moving?; is the character not moving?

An event is telling the computer to monitor the program to see if a condition or set of conditions are true. If the condition is true an action or series of actions will occur.

for example: is the character moving? and is the character's energy gauge full? if both are true do this action: set attack strength to 9001.


If you want the computer to check is something else is true right after an event you can use a subevent.

for example:
is the character moving? and is the character's energy gauge full? if both are true do this action: set attack strength to 9001
subevent: on spacebar pressed do this action: attack


there are situations where you can use either multiple conditions or subevents to achieve the same effect.
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Sat Apr 29, 2017 4:28 pm

Events consist of Conditions and Actions. When the Conditions of the Event are true, the Actions will be performed.
Events become sub-events when they are nested within other Events. All sub-events are ran before moving to the next Event.
B
45
S
21
G
65
Posts: 1,118
Reputation: 38,227

Post » Sat Apr 29, 2017 4:29 pm

On start of layout, text set text to uppercase(someone can explain me what is the difference between)
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » Sat Apr 29, 2017 8:42 pm

Hi fellows
Sorry for the caps lock.
I simply copied and pasted from google translator.
I did not even realize I had capslock turned on.

And thank you for the support!
B
7
Posts: 6
Reputation: 296


Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover, Refeuh, technofou and 15 guests