[Request]Multiplayer Clear error message

Discussion and feedback on Construct 2

Post » Sat Sep 05, 2015 9:55 am

In the multiplayer plugin, we have the "Multiplayer.ErrorMessage".

Works nice as soon as you get an error. But it looks like it remains having that error in the expression after having displayed it.
Checking if there is an error, there is always an error after having received this one "already in a room".

Scenario:
If I have this expression displaying in a textbox, it keeps showing the error "already in a room" while the error is no longer being generated.


The following would be nice:

After having used the expression: Multiplayer.ErrorMessage , clear the error message from the object.
So a next call to "Multiplayer.ErrorMessage" gives you a false response, no new errors.


edit:
An action to clear error could be wiser perhaps, as there are likely people displaying the error message every tick .
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Sat Sep 05, 2015 9:01 pm

You should be relying on the "On error" condition to determine that an error has occurred, only using the ErrorMessage expression to get a description of the error.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Sun Sep 06, 2015 1:35 pm

linkman2004 wrote:You should be relying on the "On error" condition to determine that an error has occurred, only using the ErrorMessage expression to get a description of the error.



:oops:

true, thanks for that
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests