strcpy

Game Editor comments and discussion.

strcpy

Postby jimmynewguy » Sat Sep 27, 2008 5:38 pm

all right i know what strcpy is but i need to now how to use it better.
:roll:
So i want it where it makes a new line so the text doesnt go off the page so it starts
down here again like this.
For a text actor u just push enter but with strcpy its under script editor so you cant hit enter or the code wont work
i know im confusing but if you know what im talking about please help me :D
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: strcpy

Postby edh » Sat Sep 27, 2008 6:32 pm

the special escape sequence '\n' is newline.

Code: Select all
strcpy(pText, "I want a\nline break.");
User avatar
edh
 
Posts: 233
Joined: Thu Sep 13, 2007 12:17 am
Location: Maine, USA
Score: 14 Give a positive score

Re: strcpy

Postby jimmynewguy » Sat Sep 27, 2008 7:43 pm

oh........... :oops:
thanks im still newbish
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: strcpy

Postby edh » Sat Sep 27, 2008 7:55 pm

No worries. There is plenty to learn. :)
User avatar
edh
 
Posts: 233
Joined: Thu Sep 13, 2007 12:17 am
Location: Maine, USA
Score: 14 Give a positive score

Re: strcpy

Postby jimmynewguy » Sat Sep 27, 2008 7:59 pm

more than just plenty lol
i bet even makslane learns about ge every now and than and hes the smartest person i know :D
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: strcpy

Postby BlarghNRawr » Sat Sep 27, 2008 8:55 pm

:lol:
he created it
he knows alot more than you think he does
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: strcpy

Postby jimmynewguy » Sun Sep 28, 2008 3:05 am

i know he knows alot and that he created it im just saying no one truely knows the complete and full potential of GE i mean look no 1 thought 3d would ever happen in GE....prooved wrong multiple times in multiple ways :D
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: strcpy

Postby BlarghNRawr » Sun Sep 28, 2008 4:35 pm

:D
yeah i guess so
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron