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...
Check out my first word hex game: Hexagon Game
B
17
S
9
G
2
Posts: 28
Reputation: 2,485

Post » Sat Apr 29, 2017 5:56 am

Last edited by korbaach on Sat Oct 07, 2017 8:03 am, edited 1 time in total.
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,084

Post » Sat Apr 29, 2017 12:37 pm

Thanks
Check out my first word hex game: Hexagon Game
B
17
S
9
G
2
Posts: 28
Reputation: 2,485

Post » Sat Oct 07, 2017 1:36 am

Well this sucks...
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
88
S
16
G
7
Posts: 996
Reputation: 11,445

Post » Sat Oct 07, 2017 2:58 am

Image
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
100
Posts: 1,438
Reputation: 53,945

Post » Sat Oct 07, 2017 7:25 am

AnD4D wrote:Well this sucks...


sorry..but it's not my fault :?

http://lookpic.com wrote:We are shutting down public image hosting for good.
Use imgur.com or some other image hosting site..
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,084


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 6 guests