To make your own classes like in C++!
There would be a new catogary called 'user defined classes' and there would be a button that says 'make a class' that would be like make a variable or make a block. Anyway, that would bring up a class editing window where you could pick a colour for the class blocks and make a name for the class. Then, there would be 3 buttons: they would be 'make a variable', 'make a block', and 'make a constructor'. Making variables in classes would make a variable for multiple functions in the class, but for no other sprites unless you made a block to report them. 'make a block' would make a block like most blocks are made in BYOB, but without the selection of catogaries. There would be 2 options instead of 'for all sprites' and 'for this sprite only' there would be 'public block' that would make the block appear in the sprite pallete, and 'private block' that would make the block appear below the 3 buttons and would make specific to this class; no other class or sprite could use them. Then you would make the block like any other custom block but with the only exeption that the public blocks would have an input slot for this class that you can't remove and would be be permenent. Finaly, 'make a constructor' would allow you to create a custum blocks that create instances of this class. It would have to be a reporter and would report this object when done and you would simply do things like initialising variables. If you don't make a constructor, one will automaticly be provided when you leave the class editor that simply sets all class variables to 0. The existing 'delete' block in BYOB can be used to delete instances of this class. When you make a class, it will automiticly be added to the dropdown of the <is () a ()> dropdown. The only 2 things I am stuck on are the reprisentation when it is said, and what the icon would be on an input slot for this class on custum blocks. I will post a mock-up soon.
Last edited by joefarebrother (2011-10-07 12:54:15)
Offline