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.

DarkBASIC Professional Discussion / new to programing and have a few questions about text manipulation...

Author
Message
ragen666
13
Years of Service
User Offline
Joined: 29th Sep 2012
Location:
Posted: 29th Sep 2012 15:43
ok, so i just started programing, and im really enjoying it. to solidify some of the text things ive learned, im trying to make a cryptogram game. the biggest problem i have is trying to get the displayed text to change in the program ex. (21,10,1) is whats displayed but after some user input the numbers will change to letters (t,h,e). any help would be greatly appreciated
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 29th Sep 2012 23:50
i dont rly understand what is T, H and E, but here is a link for string maniplulation.
its a plugin for dbp i made some time ago.. pretty usefull too

http://forum.thegamecreators.com/?m=forum_view&t=199982&b=8

Advanced Updater for your games!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 30th Sep 2012 12:30
Quote: "inkey$(A) as integer = 1
inkey$(B) as integer = 2

if userinput = "1"
firstchar$ = "A"
endif"

Get the idea?

Remember you will have to do the same for "a" as well as "A"

This should point you in the right direction...

Remember you can store the conversions in some form of Array or such... even a text file...

Remember you will have to ask for each character input from the user then parze them individually...

Hope this helps...

Login to post a reply

Server time is: 2026-07-09 02:35:16
Your offset time is: 2026-07-09 02:35:16