remove part of text

Game Editor comments and discussion.

remove part of text

Postby Fojam » Sat Nov 05, 2011 9:11 pm

is it possible to remove the beginning of a line of text?

for example, the text says: Thisisanexample
I want to take the beginning of that text off so it just says: example
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: remove part of text

Postby skydereign » Sat Nov 05, 2011 10:42 pm

Yeah, you can. Here's an example.
text_actor -> Create Actor -> Script Editor
Code: Select all
char original_string[30] = "Thisisanexample";
strcpy(text, &original_string[8]);
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest