Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Write string to screen and jump to a new line #402426
06/04/12 21:22
06/04/12 21:22
Joined: Feb 2006
Posts: 33
Herts, UK
D
danohu Offline OP
Newbie
danohu  Offline OP
Newbie
D

Joined: Feb 2006
Posts: 33
Herts, UK
In AUM 65 you can write text to screen using inkey as illustrated below:


STRING* name_str = " ";
STRING* answer1_str = "#100";

TEXT* name_txt =
{
layer = 15;
pos_x = 40;
pos_y = 110;
font = arial_font1;
string ("What is your name:");
}
TEXT* answer1_txt =
{
layer = 15;
pos_x = 210;
pos_y = 110;
font = arial_font1;
string (answer1_str);

set (name_txt, VISIBLE);
set (answer1_txt, VISIBLE);
inkey(answer1_str);
reset (name_txt, VISIBLE);
reset (answer1_txt, VISIBLE);

I have made the string answer1_str #100 in length. When I type text and reach the end of the screen I cannot type anymore. I want to be able to write text until I reach the end of the screen and then have the cursor jump to a new line so I can write some more visible text to the screen.

Would anyone know how to achieve this?

Thanks for your help in advance.

Re: Write string to screen and jump to a new line [Re: danohu] #402427
06/04/12 21:26
06/04/12 21:26
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Multiple line Text Objects are not supported by Acknex Engine ^^

But you can write yourself a system wich can handle that, by reading out the every keyhit, count up or down a variable, and when it reaches a given size, the inkey changes from line_1 string to line_2 string.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Write string to screen and jump to a new line [Re: Espér] #402430
06/04/12 23:36
06/04/12 23:36
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
Multiple line Text Objects are not supported by Acknex Engine

Hm yes, they are. You can either do this manually with multiple text strings or use the text flag WWRAP and text.size_x with a single string.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1