I would like to call a function like this, I change the string variable "current_ui$" to whatever function name I want to call, but obviously it wont work this way as current_ui$ in my main loop wont call the function. Is there a way to do this? Like retrieving the function name from the string variable?
#include "Functions\load_images.dba"
#include "Functions\create_main_ui.dba"
#include "Functions\ui_names_links.dba"
#include "Functions\button_click.dba"
`set ups
draw sprites first
sync on
sync rate 60
`call images
load_images()
`create gui
create_main_ui()
`first ui to load
current_ui$ = "main_ui()"
do
if mouseclick() = 1 then button_click()
current_ui$
sync
loop
The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...