Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Need a tip/tutorial for a string that changes with locations. #291792
09/28/09 01:42
09/28/09 01:42
Joined: Nov 2008
Posts: 19
Sweden
Alof Offline OP
Newbie
Alof  Offline OP
Newbie

Joined: Nov 2008
Posts: 19
Sweden
Heya guys.

I've been tackling with a lot of different ideas and such, but I really think that there's a more efficent way to accomplish this than the way I do it, wich is far from good.

The thing I need to know is a good way of changing a string in the game when the player moves to another room. I've done the code for the string to fade in and out with the name of the current room. But as the player walks into another room, the string should fade in again, but obviously with different text.

For example, player is in the starting room, the string fades in with the text "Room One". As soon as the player walks out of the door abd into the next room, the string fades in again, but with the "Room Two" text.

Anyone have any idea?




Thanks a lot in advance!


"If you say 'plz' because it's shorter than 'please', then I'll say 'no' because it's shorter than 'yes'.
Re: Need a tip/tutorial for a string that changes with locations. [Re: Alof] #291876
09/28/09 17:48
09/28/09 17:48
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
1. low-poly invisible room field ENTITY, size and shape of room floor, but high enough for actor pass through, with collision enabled, and lower push than other objects?
2. room id skill for room field ENTITIES, assignable in editor, which is indexed to STRING array containing room texts?
3. in actor's action, on collision with room field ENTITY, pull room text from STRING array using room id skill of field ENTITY as index and display using draw_text?

Re: Need a tip/tutorial for a string that changes with locations. [Re: testDummy] #291883
09/28/09 18:31
09/28/09 18:31
Joined: Nov 2008
Posts: 19
Sweden
Alof Offline OP
Newbie
Alof  Offline OP
Newbie

Joined: Nov 2008
Posts: 19
Sweden
I think I get your point, will try it out at once! Thanks a lot!


"If you say 'plz' because it's shorter than 'please', then I'll say 'no' because it's shorter than 'yes'.

Moderated by  HeelX, Spirit 

Gamestudio download | 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