How do I delete words?

Get help using Construct 2

Post » Wed Jan 25, 2017 1:56 pm

for example when someone type in leaderboards uncensural word "fuck'
system should delete and this is esy to make
compare text when 'fuck' set to " " (sorry for words;))

but someone type "2fuck5" its hard to compare each combination

its possible to delete whole sentence when system find just one bad word in sentence?
Last edited by IGDev on Thu Jan 26, 2017 1:58 pm, edited 1 time in total.
B
25
S
8
Posts: 219
Reputation: 2,181

Post » Wed Jan 25, 2017 4:00 pm

@IGDev you could loop through a list of words using the text system expressions Replace or RegexReplace.

https://www.scirra.com/manual/126/system-expressions
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,334

Post » Wed Jan 25, 2017 5:01 pm

gameglaux wrote:@IGDev you could loop through a list of words using the text system expressions Replace or RegexReplace.

https://www.scirra.com/manual/126/system-expressions


capx example please if its not a trouble for you
B
25
S
8
Posts: 219
Reputation: 2,181

Post » Wed Jan 25, 2017 8:21 pm

Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,334

Post » Wed Jan 25, 2017 10:09 pm




hello, thanks
ths looks dificult
but how can i check this words without textbox to type word?
B
25
S
8
Posts: 219
Reputation: 2,181

Post » Wed Jan 25, 2017 10:10 pm

IGDev wrote:



hello, thanks
this looks dificult
but this is blank layout. How can i check this words without textbox to type word or sentence?
B
25
S
8
Posts: 219
Reputation: 2,181

Post » Wed Jan 25, 2017 10:13 pm

text is output to your browser console log. Please tell me what you find difficult. Its a very simple capx.
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,334

Post » Wed Jan 25, 2017 10:18 pm

gameglaux wrote:text is output to your browser console log. Please tell me what you find difficult. Its a very simple capx.


Can you add textbox to test sentences with banned words?
B
25
S
8
Posts: 219
Reputation: 2,181

Post » Wed Jan 25, 2017 10:40 pm

Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,334

Post » Thu Jan 26, 2017 1:59 pm

gameglaux wrote:https://drive.google.com/file/d/0B56h976sX__DYXNUbjFTblJPcDQ/view?usp=sharing


PERFECTLY thanks!
B
25
S
8
Posts: 219
Reputation: 2,181

Next

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], kizlengames and 6 guests