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 / Replacing Letters with "*"

Author
Message
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 14th Jul 2003 01:58 Edited at: 14th Jul 2003 01:59
is there a way to replace letters with stars? i did this:



and the stars are on seperate lines. is there a way to keep them on the same line? Would i have to keep seting the cursor?

---Mattman
DID YOU KNOW THAT ???
cusoi
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 14th Jul 2003 02:27
I thought you could use print "*"; The ; takes care of the one line thingie.

Pentium IV 2.4 GHZ 256 MB Ram Geforce 4 TI 4200 128 MB
Visit my site: www.cuso.tk
cusoi
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 14th Jul 2003 02:30

Here it is! Just made without testing it, so I don't know if it fully works.

Pentium IV 2.4 GHZ 256 MB Ram Geforce 4 TI 4200 128 MB
Visit my site: www.cuso.tk
Troan
21
Years of Service
User Offline
Joined: 22nd Jan 2003
Location: Inner thought about nothing
Posted: 14th Jul 2003 19:24
try hinding what u input in black(or what ever the bacground is)
and print "*" every time u type

"Life isnt everthing, its the only thing."
"If a mime get hits by a car, does he scream?"
---------------------------------------------Troan
Troan
21
Years of Service
User Offline
Joined: 22nd Jan 2003
Location: Inner thought about nothing
Posted: 14th Jul 2003 19:55
hmm heres simple one (with added colors ) but it dosnt show stars till after typing


"Life isnt everthing, its the only thing."
"If a mime get hits by a car, does he scream?"
---------------------------------------------Troan
cusoi
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 15th Jul 2003 12:42
But Troan, mine is working too! Why do you post another one?

Pentium IV 2.4 GHZ 256 MB Ram Geforce 4 TI 4200 128 MB
Visit my site: www.cuso.tk
cusoi
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 15th Jul 2003 12:43
But Troan, mine is working too! Why do you post another one? And mine does show stars.

Pentium IV 2.4 GHZ 256 MB Ram Geforce 4 TI 4200 128 MB
Visit my site: www.cuso.tk
Ishamael Sedai
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: France
Posted: 15th Jul 2003 17:48
Quote: "
Function SpriteText Input(prompt$,x,y,W,H,N,BMP,cursor$)
backdrop on
repeat
if scancode()=14
cls
long = Len(Txt$)-1
Txt$ = LEFT$(Txt$,long)
goto skip
endif
Txt$ = Txt$ + inkey$()
skip:
for i = 1 to 5
if i = 1 then Spritetext (prompt$ + txt$ + cursor$,x,y,w,h,n,bmp)
if i = 2 then Spritetext (prompt$ + txt$ + cursor$,x,y,w,h,n,bmp)
if i = 3 then Spritetext (prompt$ + txt$,x,y,w,h,n,bmp)
if i = 4 then Spritetext (prompt$ + txt$,x,y,w,h,n,bmp)
if i = 5 then Spritetext (prompt$ + txt$,x,y,w,h,n,bmp)
sync
next i
until returnkey()=1
endfunction txt$"


I am the Betrayer of hope naebl'is by the will of
the Great Lord of the Dark. If you do not want to surrender, your soul will burn in the deepest hole of the Pit of doom.
Troan
21
Years of Service
User Offline
Joined: 22nd Jan 2003
Location: Inner thought about nothing
Posted: 15th Jul 2003 20:20
@ RTSpider
i know but mines all corlorfull =)
and thiers more than one way to do stuff

"Life isnt everthing, its the only thing."
"If a mime get hits by a car, does he scream?"
---------------------------------------------Troan
cusoi
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 15th Jul 2003 21:28 Edited at: 15th Jul 2003 21:29
Yeah, that's right
But I don't think it will be possible to show stars while typing when you use the input command.

EDIT: I edited some typo's.

B-e-a-utiful... Visit my site: www.cuso.tk

Login to post a reply

Server time is: 2024-09-20 15:45:06
Your offset time is: 2024-09-20 15:45:06