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 / Inputs like names etc

Author
Message
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 1st May 2004 19:14
How do you code something that allows you to put in your name or something?
like when making a character

A 1 man team
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st May 2004 19:15
dim strName as string

input "Enter Name: ", strName


** DBP_NETLIB_v1 PLUGIN - FULL VERSION RELEASED! ** Mooooooo!
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 1st May 2004 19:19
If you are using DBC use this

input "Enter name:";name$
cls
Print "Your name is,";name$

CURRENT PROJECT: RETRO PAC-MAN
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 1st May 2004 19:20
thanks and one more thing!
how do you put a varaible in a string of text like
PRINT "Hello [myname] aokdasod"

A 1 man team
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 1st May 2004 19:22
and how do you move where the input box is displayed?

A 1 man team
Cypher Hax0r
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: Toilet
Posted: 1st May 2004 20:18 Edited at: 1st May 2004 20:19
This is how you add something in the middle of text, you do +whatever$,

if you wanted to add something at the begining use "a$+" heres an example and at the end just use the a$,



and to make the input go to a certain place use:


Hope that helped
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 1st May 2004 20:38
Ok and one more thing how do you clear a certain text on the screen made with print?
for example
screen shows:
MOnkey
Dog
Cat
______
how would I just clear dog but not the rest from screen?

A 1 man team
Cypher Hax0r
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: Toilet
Posted: 1st May 2004 20:45 Edited at: 1st May 2004 20:46
heres an example i made some writing a$ and i made the code
if rightkey=1 then a$=" "
so in other words if the rightkey is pressed then a$= nothing so it will be printed as " " and not as "writing"



i dont know if you could delete it though if the writing was a sprite you could just do delete sprite *sprite number*

hope that helps you

Login to post a reply

Server time is: 2024-11-26 14:28:38
Your offset time is: 2024-11-26 14:28:38