The Farmer Was Replaced

The Farmer Was Replaced

rich May 13, 2024 @ 12:12am
Code window doesn't scroll
When you have a long program the editor window doesn't scroll but instead just lengthens until it goes off the bottom of the screen. Is there a way to have a scroll bar in it please.
< >
Showing 1-4 of 4 comments
rich May 13, 2024 @ 1:27am 
Silly me - I didn't realise I could use multiple windows with functions in them! That shortens Main a lot!
Lupus MAL-40k May 15, 2024 @ 1:33pm 
And you can technically also move the camera southward (drag up the world) and you should see the part that's hidden beyond the bottom.

But I recommend keeping each window relatively small by breaking out parts of the code into separate functions (in other function windows) and calling them
Mr. Koala Gun Jul 24, 2024 @ 6:25pm 
I have also found issue with this. While it is true that you can often split functions out into separate windows, you cannot always do this. Because there is no 'global' keyword to prevent reassigning globals as locals, i have had to define many functions within one function to emulate having globals. This is the only way I am aware of to do this within the game. I could also pass the variables among the functions, but I think this generally makes them messy. All this leads to me having an unavoidably large window which then makes debugging a pain as I cannot see both the programs current location and the next step button, so you have to move the camera up and down.
Edit: this actually does not work for emulating global variables. I would still like larger windows though

I understand that you may want to encourage writing smaller functions in their own windows, as it's good to teach new programmers to avoid writing singular monster functions, however, I feel if this is the reason you cannot scroll the code windows, it's better to put the information in a tutorial segment and allow for windows to be long and convenient.
Last edited by Mr. Koala Gun; Jul 24, 2024 @ 6:44pm
del0rian Feb 16 @ 7:33am 
I would like the option to scroll with mousewheel on code windows. II fact you can break the game if you zoom too far in and open a 'help' window - you can no longer zoom back out to close the window
Last edited by del0rian; Feb 16 @ 7:34am
< >
Showing 1-4 of 4 comments
Per page: 1530 50