or ELSE!!!!!!

For questions about using Classic.

Post » Sat Jan 23, 2010 11:21 pm

ta the end of my game I want a branch if they made high score you get an input and it saves or if not it shows you what the high score is.

My issue is I am having a problem with the else. It is a new event or sub event of a block?
Any examples?
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Sat Jan 23, 2010 11:34 pm

Add a invert condition

Event Sheet Editor --> Right click on your event and then "add a invert condition"

*i think [...] *
*sry, when its wrong solution.. i am new in construct :)*
B
2
G
2
Posts: 30
Reputation: 710

Post » Sun Jan 24, 2010 2:25 am

[quote="Guyon":6ur6wcqm]It is a new event or sub event of a block?
Any examples?[/quote:6ur6wcqm]

A new event underneath the event you want to else. Also, Else should be the only condition in the Else event.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Jan 24, 2010 2:29 am

Anyways the else is an event saying if the condition above is not met then it will run the else event.

[quote=deadeye]Also, Else should be the only condition in the Else event.[/quote]
not true because you can make if/else statements if you add conditions to the elses and that is incredibly useful.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Sun Jan 24, 2010 2:49 am

On Layout sheet 2 block 8 and 9 should be my win lose depending on if you beat the Global Best Time. Block 9 has the else

The You lost test (Block 9) seems to pop up before the end of the race anyway. Not sure why.

Note you can can manually set the Best Tim ein Blck 7 for resting purposes.

http://www.box.net/shared/qvs2elabkc

Thanks for the help
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Sun Jan 24, 2010 4:32 am

[quote="Aeal5566":37q26gja]not true because you can make if/else statements if you add conditions to the elses and that is incredibly useful.[/quote:37q26gja]


Oh? Sorry, my mistake. I don't know why I thought that...
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Jan 24, 2010 5:19 am

But my else seems to be ELSE seems to be invoking way before the end of the race.

Still not sure if i have ti placed right
B
28
S
8
G
8
Posts: 530
Reputation: 7,154


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: GameOverBeast and 2 guests