Auto Type Box Text

Learn to use DS Game Maker by Example!

Auto Type Box Text

Postby Buck_7 » April 18th, 2012, 4:11 pm

This is a DSGM example Jan made for a couple people a while ago. Though I don't think he posted this publicly. Credit goes to him for this.

The action files go in:

C:\Program Files\DS Game Maker\Actions
Attachments
AutoTypeBoxText.dsgm
(1.03 KiB) Downloaded 20 times
AutoTypeBoxTextCreate.action
(456 Bytes) Downloaded 16 times
AutoTypeBoxTextStep.action
(308 Bytes) Downloaded 18 times
Last edited by Buck_7 on January 28th, 2013, 1:35 am, edited 3 times in total.
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 964
Joined: February 19th, 2011, 1:44 am

Re: Auto Type Box Text

Postby sckuz254 » October 15th, 2012, 6:06 pm

Heh heh, forgive me!!! How do i open . action files?!?! I know you're supposed to use DS Game Maker to open .dsgm files. Am i correct?!, but yours are not working!!! Sorry i'm new at this!!! I feel stupid for asking!!!
Last edited by sckuz254 on October 15th, 2012, 6:10 pm, edited 1 time in total.
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby sckuz254 » October 15th, 2012, 6:10 pm

And how do you change size, font, color and display location of your text?
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby Buck_7 » October 15th, 2012, 11:19 pm

To change the font, use the change font action under the display tab, and to change the location of your text, change the arguments in the AutoTypeBoxTextStep; X1 (X co-ordinate), Y1 (Y Co-ordinate).
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 964
Joined: February 19th, 2011, 1:44 am

Re: Auto Type Box Text

Postby sckuz254 » October 16th, 2012, 12:50 am

Cool! Size and color?
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby Foxi4 » October 16th, 2012, 1:16 am

Colour can be changed via a similar action (if downloadable, pretty sure it's not there stock) or via code:

PA_SetTextCol(Screen, R, G, B);

Where Screen is 0 for bottom and 1 for top, R,G,B values ranging between 0 and 31 (standard 0-255 value divided by 8).

Size is not adjustable in tiled fonts, you'd have to use 8-bit/16c raster fonts, but I'm afraid that's quite complex and not really useful for you. It's in the Tutorials section if you're interested, written by myself.
Last edited by Foxi4 on October 17th, 2012, 7:05 am, edited 1 time in total.
Current Projects:

FalloutDS: Postponed until proper libraries are created, 10%
Foxi_Lib: A completely revised version of NitroSprites[FINAL], NitroBackgrounds and NitroText[FINAL], 40%
Foxi4
 
Posts: 1114
Joined: December 31st, 2010, 3:25 am

Re: Auto Type Box Text

Postby sckuz254 » October 16th, 2012, 1:35 am

Awesome... Here comes an embarrasing question.................are you ready.....................O.K. Here goes!!! How do i input code regarding text color?
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby Foxi4 » October 16th, 2012, 2:17 am

Execute Code Action or a Script.
Current Projects:

FalloutDS: Postponed until proper libraries are created, 10%
Foxi_Lib: A completely revised version of NitroSprites[FINAL], NitroBackgrounds and NitroText[FINAL], 40%
Foxi4
 
Posts: 1114
Joined: December 31st, 2010, 3:25 am

Re: Auto Type Box Text

Postby sckuz254 » October 17th, 2012, 5:40 am

I'm sorry, but i don't understand "Execute Code Action or a Script." Keep in mind you're talking to a "DS Game Maker" beginner!!! I don't see an "Execute" menu anywhere. What do you mean by "Execute Code Action or a Script."!?!!??
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby Foxi4 » October 17th, 2012, 6:24 am

It's in the control tab of the action menu at the bottom of the screen.
Current Projects:

FalloutDS: Postponed until proper libraries are created, 10%
Foxi_Lib: A completely revised version of NitroSprites[FINAL], NitroBackgrounds and NitroText[FINAL], 40%
Foxi4
 
Posts: 1114
Joined: December 31st, 2010, 3:25 am

Re: Auto Type Box Text

Postby sckuz254 » October 17th, 2012, 7:01 am

I got this:

C:\DSGMTempForceDisruptor335143153>make
Build process start for project "DSGMTempForceDisruptor335143153"...
.
main.c
In file included from c:/DSGMTempForceDisruptor335143153/source/main.c:6:0:
c:/DSGMTempForceDisruptor335143153/include/GameWorks.h: In function 'False_Decei
ver_ObjectStep_Event':
c:/DSGMTempForceDisruptor335143153/include/GameWorks.h:71:17: error: 'Screen' un
declared (first use in this function)
c:/DSGMTempForceDisruptor335143153/include/GameWorks.h:71:17: note: each undecla
red identifier is reported only once for each function it appears in
c:/DSGMTempForceDisruptor335143153/include/GameWorks.h:71:25: error: 'R' undecla
red (first use in this function)
c:/DSGMTempForceDisruptor335143153/include/GameWorks.h:71:28: error: 'G' undecla
red (first use in this function)
c:/DSGMTempForceDisruptor335143153/include/GameWorks.h:71:31: error: 'B' undecla
red (first use in this function)
make[1]: *** [main.o] Error 1
make: *** [build] Error 2

C:\DSGMTempForceDisruptor335143153>pause

??? I'm tryng! I want to learn here! Is there some sire you can link to to help me learn at all?
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby Foxi4 » October 17th, 2012, 7:06 am

Re-read what I wrote so-far, then read your code and think about what you did wrong. :)

Hint:
PA_SetTextCol(Screen, R, G, B);

Where Screen is 0 for bottom and 1 for top, R,G,B values ranging between 0 and 31 (standard 0-255 value divided by 8).
Current Projects:

FalloutDS: Postponed until proper libraries are created, 10%
Foxi_Lib: A completely revised version of NitroSprites[FINAL], NitroBackgrounds and NitroText[FINAL], 40%
Foxi4
 
Posts: 1114
Joined: December 31st, 2010, 3:25 am

Re: Auto Type Box Text

Postby sckuz254 » October 17th, 2012, 7:34 am

Ok. Awesome.... I apologize for being dumb. I can't believe i honestly asked what the request for R G and B values meant.... I'm sorry! I feel stupid when the answer to a question is right there!!! Could you give me links to all this Game Maker info, please?!!?
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby sckuz254 » October 17th, 2012, 7:37 am

"PA_SetTextCol(Screen, R, G, B);" is what i refered to. Where did you learn that command?!?1
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am

Re: Auto Type Box Text

Postby Foxi4 » October 17th, 2012, 11:53 am

From the PALib documentation. The library's page has been closed, but there is a Wayback Machine version of it available.

http://web.archive.org/web/200901182155 ... index.html

The search function isn't available, but the modules are all listed. Do keep in mind that all online resources are outdated at this point.

This will probably be more helpful:

http://www.mediafire.com/?0l38yirl1wo64h1

It's a full documentation for the latest revision, compiled into a useful Help file.
Current Projects:

FalloutDS: Postponed until proper libraries are created, 10%
Foxi_Lib: A completely revised version of NitroSprites[FINAL], NitroBackgrounds and NitroText[FINAL], 40%
Foxi4
 
Posts: 1114
Joined: December 31st, 2010, 3:25 am

Re: Auto Type Box Text

Postby sckuz254 » October 17th, 2012, 11:28 pm

Cool, thanks a lot!!!
sckuz254
 
Posts: 131
Joined: April 22nd, 2012, 1:06 am


Return to Tutorials & Examples

Who is online

Users browsing this forum: No registered users and 2 guests