How do I delete first letter of a text?

Just started using Construct 2? Post your questions here

Post » Sat Apr 29, 2017 5:16 am

Hi...I amd a teacher and trying to make a spelling game. It is a kind of fast writing a word you see.

I can delete the first letter by pressing any key in the keyboard with this code..
right(SpriteFont.Text,len(SpriteFont.Text)-1)

but I want to delete the first letter with a specific key "A, or B" I press
For example: the word is " book"

I want it delete the first letter only pressed on the key "B"

Thank for your help...
B
13
S
9
G
2
Posts: 23
Reputation: 2,373

Post » Sat Apr 29, 2017 5:56 am

try:
Image

Image
Image
B
65
S
23
G
7
Posts: 1,503
Reputation: 10,892

Post » Sat Apr 29, 2017 12:37 pm

Thanks
B
13
S
9
G
2
Posts: 23
Reputation: 2,373


Return to Beginner's Questions

Who is online

Users browsing this forum: brunopalermo and 0 guests