I appolagize if this has already been answered if so i will delete this post.
I have a problem of functions not executing in the order their called. In the manual it says the called function does whats in the function, then returns to the point which the function was called in the actions. Unless i'm misunderstanding something, that's not how things are working for me. Here's a simplified example:
[attachment=1:33tppxu3][/attachment:33tppxu3]
what should happen is first a new sprite is created, then all sprites are deleted. What actually happens is all sprites are deleted first, then a new one is created.
So far one way around it is to pause the code in between functions but that's bad practice, it will slow down the game, and if a function lags and takes longer than the paused time will create further problems.
[attachment=0:33tppxu3][/attachment:33tppxu3]
I've thought maybe only using using the return value as a way to test if a function is finished before calling the next function, but that doesn't seem to work either.
What i'm trying to do on my actual game is more complicated, but i'm pretty sure this example sums up the problems i'm having with not being able to control the sequence in which functions execute.
Thanks!