Correction: the textbox now supports click-and-drag highlighting as well as cutting/copying/pasting with the clipboard. So far, the multi-line textbox has been a separate class from the single-line textbox, but I created an option to make it single-line, so I think I will completely replace the single-line textbox with this one. I think it's as far as I will take it. It has all the most important features now. Should make writing scripts much more convenient. Now all I need to do is attach a scrollbar to the textbox in the script editor.
Now that I think of it, it would be nice to be able to scroll through the text with the scrollwheel. Should be easy to implement.
Anyway, sorry for all the UI talk. Seems irrelevant to Sever, but this is a dev blog and I'm developing the UI right now. Thanks for reading even though it's a bit boring right now.
clevceo
Friday, December 4, 2015
Thursday, December 3, 2015
Multi-line Textbox
I know I said in my last post that I wouldn't add any more to the multi-line textbox, but it was nagging at me, so I did it anyway. You can now highlight text, and you can hold down a key for it to repeat. Both of these changes will be extremely convenient when writing scripts. However, it does not yet support click-and-drag highlighting. Just shift-click or shift-arrow-key. But that alone will be extremely handy. Anyway, thanks for reading!
clevceo
clevceo
Tuesday, December 1, 2015
Multi-line Textbox, Scripting
I just finished adding multiple-line functionality to my TextBox class. Unfortunately, it's still a pretty simple control. You can't highlight anything, and you can't hold buttons down to repeat them. For example, if you want to delete a large section of text, you can't select the whole thing and delete it or even press and hold backspace. You have to repeatedly press backspace over and over until it's gone.
It can be a bit of a pain, but I think I'll leave it be until I feel I really need it. If you read my early posts on this blog when I first started Sever, you'll notice that I was easily sidetracked with things like this. I spent way more time than I should have on the user interface and input code. Given, they were handy, but they were much more than I needed and the extra time spent on them could have been spent making progress on Sever. Hence the fact that I never finished it. The main reason why I'm actually making progress this time around is because I'm not allowing myself to get sidetracked.
Anyway, that's why I'm not going to add on to the multi-line textbox until I decide that I really need to. I probably will at some point, but at the moment, I want to keep moving. It does what I need it to do. It allows me to write scripts directly into the editor, which is extremely convenient. From here, I'll be able to move much faster.
I want to start adding scripting to more than just hotspots. One on the list is a script that runs at the beginning of a level. This will be extremely handy if the level won't be the same every time it is loaded. Parts of it can be randomized, or it can change based on the player's choices in previous levels, etc.
I also want to add the ability to script the AI. There will be levels where the AI is not really intelligent. It will do one specific thing that can be easily scripted. Also, the scripts could be used merely as a state-machine to switch between AI modes (of course, I'll need to build those modes first).
Anyway, I'm excited to move forward with this. I feel like everything is finally beginning to come together. It's really close to the point where I can start building real, playable levels. Of course, I won't be building an actual campaign for another while. I'll be experimenting with different level ideas until I have an extensive list of levels that I can compile into a campaign. And I'm sure I'll be tweaking the gameplay as I go. But the main thing is that I'll finally be able to move beyond the game engine to the game itself. I've started over on Sever so many times, and I've never reached this point. I'm excited. I only hope that the game is fun in the end.
Thanks for reading, please comment!
clevceo
It can be a bit of a pain, but I think I'll leave it be until I feel I really need it. If you read my early posts on this blog when I first started Sever, you'll notice that I was easily sidetracked with things like this. I spent way more time than I should have on the user interface and input code. Given, they were handy, but they were much more than I needed and the extra time spent on them could have been spent making progress on Sever. Hence the fact that I never finished it. The main reason why I'm actually making progress this time around is because I'm not allowing myself to get sidetracked.
Anyway, that's why I'm not going to add on to the multi-line textbox until I decide that I really need to. I probably will at some point, but at the moment, I want to keep moving. It does what I need it to do. It allows me to write scripts directly into the editor, which is extremely convenient. From here, I'll be able to move much faster.
I want to start adding scripting to more than just hotspots. One on the list is a script that runs at the beginning of a level. This will be extremely handy if the level won't be the same every time it is loaded. Parts of it can be randomized, or it can change based on the player's choices in previous levels, etc.
I also want to add the ability to script the AI. There will be levels where the AI is not really intelligent. It will do one specific thing that can be easily scripted. Also, the scripts could be used merely as a state-machine to switch between AI modes (of course, I'll need to build those modes first).
Anyway, I'm excited to move forward with this. I feel like everything is finally beginning to come together. It's really close to the point where I can start building real, playable levels. Of course, I won't be building an actual campaign for another while. I'll be experimenting with different level ideas until I have an extensive list of levels that I can compile into a campaign. And I'm sure I'll be tweaking the gameplay as I go. But the main thing is that I'll finally be able to move beyond the game engine to the game itself. I've started over on Sever so many times, and I've never reached this point. I'm excited. I only hope that the game is fun in the end.
Thanks for reading, please comment!
clevceo
Subscribe to:
Posts (Atom)