Home > database > How dynamic destruction userobject
How dynamic destruction userobject
Time:10-13
Ask a question
I now do a simple aircraft games, encounter a problem, when the shells to run to the top of the window, unable to make the shell object destruction
I define the shell as a userobject in the object ue_timer set in the shell per second mobile distance, I in this kind of error, tip no CloseUserObject this function, consult everybody, if the object is destroyed themselves
This.=this. Y y - 40 If (this. Y<=0) then CloseUserObject (this) End the if
CodePudding user response:
No closeuserobject userobject function, Window dynamically create openuserobject, should also be closeuserobject on Windows,
In addition, the Suggestions to userobject records to be destroyed, the next window unified destroyed before the timer,