Scrolling Game Development Kit Forum
Welcome, Guest. Please login or register.
2010-09-09, 05:27:47 PM

Login with username, password and session length
Search:     Advanced search
8920 Posts in 1007 Topics by 168 Members
Latest Member: mogzdogz
* Home Help Search Login Register
+  Scrolling Game Development Kit Forum
|-+  SGDK Version 2
| |-+  General Discussion
| | |-+  More issues (Map Editor)
« previous next »
Pages: [1] Print
Author Topic: More issues (Map Editor)  (Read 120 times)
durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« on: 2010-03-27, 07:40:20 PM »

When editing a map, I can name plans whatever I want, but in the plan editor, when I try to name them, it says only letters, digits, and spaces are allowed.  There's nothing stopping me from putting illegal characters in the plan's name from the map editor.  The same is true of naming static sprite instances.  In my case, I was trying to use colons in the plan names.  Specifically, something like "Message: Entry" "Message: Off Limits" etc.  It would be useful to be able to use colons in plan names, and perhaps replace them with underscores at compile time.

Speaking of which, underscores are perfectly acceptable as far as the compiler was concerned, but the plan editor wouldn't let me put them in as part of the name.

The other thing I wanted to mention is that I really like how I can alphabetize the plans list, and I wish there were a way to do the same with the sprites list.  Manual ordering would also be useful.
« Last Edit: 2010-03-27, 07:44:23 PM by durnurd » Logged

Edward Dassmesser
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #1 on: 2010-03-28, 09:07:00 AM »

Underscores are prevented because
1. Plan names have to be unique.
2. Spaces are converted to underscores by SGDK2's compile process.
3. What would happen if you had one plan named "A B" and another "A_B".  They would look unique before you compiled, but SGDK would convert them to the same name.

Space seems to be more useful to an end user than underscore, so I just ruled out underscore and accepted space instead.
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!