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 / How to make a text box that can be typed on and that the program itself can update?

Author
Message
Payton_T
13
Years of Service
User Offline
Joined: 13th Jan 2013
Location:
Posted: 13th Jan 2013 19:25
So... a little bit more description of what I'm looking for. I didn't see a post on this and is the reason I made my account. (Nice to meet you guys.)

I am working on a 2d level editor for a little platformer that I'm working on. What I'm trying to have is a text box below what the map will look like in game showing the actual data from the map so that I can:

a. Copy and paste from the editor's text box into my source code.

b. Copy and paste from my source into the text box to load my maps that I've been working on.

... I'm just tired of typing "0,1,1,1,1,4,4,4,4,1,1,1,1,1,......." and then testing just to see how it came out and starting over.

No advice will be taken as an insult.

There is no code...
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 15th Jan 2013 08:01
Not sure what you are trying to do. I suspect you might be taking an unusual approach by copy and pasting. Can you describe your process in greater detail?

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 15th Jan 2013 08:45
He is looking for a form of commandline to manipulate his map layout in real time... Post Running not Pre-Compiling...

Unless I got it wrong too...

Payton_T - Welcome to the forums!

Payton_T
13
Years of Service
User Offline
Joined: 13th Jan 2013
Location:
Posted: 18th Jan 2013 01:10
MrValentine nailed it in the head. A text box under my map that I'm making that displays the tile numbers/map data. Data that can also be manipulated if need be such as copying and pasting.

Also, if I paint my tiles on the map editor itself, I was looking to update the data that is shown in the box.

That way, if I wanted to load a map into the editor, all I would have to do would be copy and paste my map code into the box. I could also copy and paste from the editor to my source code to put the map data into it.

Oh, and thanks! Glad to be here.

There is no code...
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 18th Jan 2013 04:27 Edited at: 18th Jan 2013 04:41
He's Looking for a debug console.


I'll apologize, there's a ton of stuff being worked on. I plan to make the console pretty a bit later.
The flashing text is unrelated debug data tied to keyboard buttons Enter + Space.


Having an interface like this lets me have a lot of control over the game. I've only got a few commands in the video, but I can do things like change levels, adjust volume, and change video settings. This is a popular method professionals use to implement what I believe the OP is asking for.
Another thing if you just want to read info, you can make the game print out things while you hold down buttons. In the video above I have SPACE button setup to display one of the HDR cameras. Enter key displays a list of image paths one of the characters is using. When I type in the console, sometimes these are activating because the game is running in the background.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th Jan 2013 07:04
Mage = KUDOS!

Login to post a reply

Server time is: 2026-07-07 10:13:39
Your offset time is: 2026-07-07 10:13:39