Someone told me before that I could stick a . in front of a function name to get the global function when in a function of the same name inside a type. Another person mentioned another way to access the original function but I forgot that method and I now suspect the first method only worked for types but not for "global scope" functions like I have here.
Does anyone know what I put in front of the function names instead of a . to fix this? It just calls itself recursively right now:
Does anyone know what I put in front of the function names instead of a . to fix this? It just calls itself recursively right now:
Function LoadImage:TImage(Url:Object, Flags%=-1) Local Image:TImage Image = .LoadImage(Url, Flags) If Image = Null Then RuntimeError("The following image failed to load: " + String(Url) + ". Please reinstall the game.") Return Image End Function Function LoadAnimImage:TImage(Url:Object, Cell_Width%, Cell_Height%, First_Cell%, Cell_Count%, Flags%=-1) Local Image:TImage Image = .LoadAnimImage(Url, Cell_Width, Cell_Height, First_Cell, Cell_Count, Flags) If Image = Null Then RuntimeError("The following image failed to load: " + String(Url) + ". Please reinstall the game.") Return Image End Function