creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Help Forum
old
text part tutorial?   
Horstj

Horstj
Germany  


  4/20/2012

Does anyone know a tutorial for making agnts with text parts? (PAT: TXT as well as PAT: FIXD)
Please post with links.

 
Amaikokonut

Amaikokonut


 visit Amaikokonut's website: Naturing :: Nurturing
  4/20/2012

There's not really a strict text-part tutorial that I know of; is there something you're having trouble with in particular? I have pretty extensive experience with both.

[Naturing :: Nurturing]
 
Horstj

Horstj



  4/20/2012

is there something you're having trouble with in particular?


Jes, indeed: I'm having trouble getting text into the text-part. When I tried the PAT: TEXT I got the cursor on cliking it, but I wasn't able to type any kind of text (pressing keys on the keyboard resulted in nothing). Using PAT: FIXD and PTXT to set the text gave no result as well.
Both times the sprite of the text-part was as large as the sprite of the "body part", could that be the problem? I made it 25 pixels high (not sure if smaller would work, but that's the hight that all text-parts of the infirmary use) wich workes on other agents (not made by me), so that should not be the problem.

 
Amaikokonut

Amaikokonut


 visit Amaikokonut's website: Naturing :: Nurturing
  4/20/2012

Hmmm, 25px high should be plenty, assuming you're using the default whiteontransparentchars font.
Have you made use of FRMT at all? By default, I believe it gives you margins of 8px or something all around, which might make your text area too small. You could try targing the part setting all the margins to 0 (frmt 0 0 0 0 0 0 0) and see if that helps?
If that's not the case I might have to see the code to really understand what's going on.


[Naturing :: Nurturing]
 
Horstj

Horstj



  4/20/2012

I haven't used FRMT I'll try that, and than report back.

EDIT: Using FRMT workes! Thanks a lot.

But I have an other problem: when I click a TEXT-part I get this cursor thing and can write on that part. On other agents TEXT-parts using return makes me "say" whatever I type in next (using the speech bubble), but on my agent pressing return resultes in nothing.


Edit2: I found out how to get that myself, but I do not understand at all why it works...
so here is the script for cliking the text part:

targ game "c3_default_focus"
part game "c3_default_focus_part"
fcus
targ ownr
part 1

I'm not sure if TARGing the OWNR is really necessary if there is not more script afterwards, but it works...

 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki