Functions in seperate codes
Blitz3D Forums/Blitz3D Beginners Area/Functions in seperate codes
| ||
How would you go about creating a function library, not sure if that is the right term, that is, a seperate program that stores code blocks/sequences you use a lot using include"Differentfule.bb", and make them item specific? for example: my code in the main program may need to have a character move, but I want to name the entity something other than what is in the function's commands? |
| ||
Like this:;Differentfule.bb Function Move(entity) ;do stuff to entity End Function ;Main.bb Include "Differentfule.bb" man = CreateSphere() Move(man) |
| ||
thanks :) |