Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / One input throughout several sections of game?

Author
Message
RoyalBlood
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location: Stuck in this box!
Posted: 16th Apr 2009 00:59
Hey, I was wondering if I would be able to do this. I need to use an input that's entered at the beginning of the game, several times throughout different sections of it. For example: The player enters thier name at the beginning, and then instead of using "you", it uses the players name...Is this possible?

AMPConcepts.webs.com
RoyalBlood
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location: Stuck in this box!
Posted: 16th Apr 2009 02:38
Nobody knows how to do that?

AMPConcepts.webs.com
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 16th Apr 2009 07:58 Edited at: 16th Apr 2009 08:02
try using



that should do the trick...

p.s. please dont double post withing a couple of hours, try to wait a bit longer than that...
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 16th Apr 2009 11:42
Depending upon the structure of your code and whether or not you are using functions (which you really should be doing ^_^), you may need to make particular variables GLOBAL at the start of your code.

E.g.


"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 16th Apr 2009 16:59
@Royal Blood
You should check out some of the tutorials threads at the top of this board - those should be able to get you started with relatively simple problems like these.



Login to post a reply

Server time is: 2024-11-24 08:53:50
Your offset time is: 2024-11-24 08:53:50